diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2017-02-12 11:51:43 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2017-02-12 11:51:43 +0100 |
commit | 127c44664d74de5695c9f9e93127ac14d5746058 (patch) | |
tree | 9d3e7f7250ed5f0706a26c1645ba5555eac850af | |
parent | ce1d84f648f160aa62bd1a7134dc34fa1ad255d8 (diff) | |
download | bin-127c44664d74de5695c9f9e93127ac14d5746058.zip bin-127c44664d74de5695c9f9e93127ac14d5746058.tar.gz |
install: be sure to run from the good directory
-rwxr-xr-x | install | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,5 @@ #! /bin/sh -DEST_DIR=$HOME/bin - DONOTDO="install bashrc solarized xkb-jeyzu.patch" function link () @@ -19,6 +17,10 @@ function link () fi } +DIR=${0%/*} +DEST_DIR=$HOME/bin +pushd $DIR || exit 1 + rm *~ 2>/dev/null for f in *; do echo $DONOTDO | grep -q $f 2>/dev/null |