summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2017-02-12 11:51:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2017-02-12 11:51:43 +0100
commit127c44664d74de5695c9f9e93127ac14d5746058 (patch)
tree9d3e7f7250ed5f0706a26c1645ba5555eac850af /install
parentce1d84f648f160aa62bd1a7134dc34fa1ad255d8 (diff)
downloadbin-127c44664d74de5695c9f9e93127ac14d5746058.zip
bin-127c44664d74de5695c9f9e93127ac14d5746058.tar.gz
install: be sure to run from the good directory
Diffstat (limited to 'install')
-rwxr-xr-xinstall6
1 files changed, 4 insertions, 2 deletions
diff --git a/install b/install
index e4cc885..6b77ea2 100755
--- a/install
+++ b/install
@@ -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