dotfiles/recipes/_link

13 lines
225 B
Text
Raw Normal View History

2018-08-10 18:41:46 +00:00
#!/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
}