dotfiles/recipes/_link

12 lines
225 B
Bash

#!/bin/bash
set -e
_link() {
source=$1
target=$2
if [ ! -e $target ]; then
_run "[link] Install $target" ln -s $source $target
else
echo "[link] $target already installed, skipping."
fi
}