From 127c44664d74de5695c9f9e93127ac14d5746058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 12 Feb 2017 11:51:43 +0100 Subject: install: be sure to run from the good directory --- install | 6 ++++-- 1 file 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 -- cgit v1.1-2-g2b99