mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-24 03:00:10 +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
|
|
}
|