mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-27 19:19:53 +00:00
13 lines
270 B
Bash
13 lines
270 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
_link() {
|
|
source=$1
|
|
target=$2
|
|
if [ ! -e $target ]; then
|
|
_run "[link] Install $target" mkdir -p $(dirname $target) \
|
|
&& ln -s $source $target
|
|
else
|
|
echo "[link] $target already installed, skipping."
|
|
fi
|
|
}
|