summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDavid Kaufmann <astra@fsinf.at>2011-11-15 16:04:23 +0100
committerDavid Kaufmann <astra@fsinf.at>2011-11-15 16:04:23 +0100
commit890bcf73e280fcf2d518ea6396de9afc0141e1df (patch)
tree060aad4d102968b91c4c17d91bf5ce00ac81222d /bin
parentda275ceb1e5c4813a7a27e92a002c18a6ff22072 (diff)
downloadconfig-890bcf73e280fcf2d518ea6396de9afc0141e1df.tar.gz
bugfixes in load.sh
Diffstat (limited to 'bin')
-rwxr-xr-xbin/load.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/bin/load.sh b/bin/load.sh
index 9c810b7..e057fee 100755
--- a/bin/load.sh
+++ b/bin/load.sh
@@ -1,9 +1,5 @@
#!/bin/bash
-# goto root dir (this script resides in src)
-BASEDIR=`dirname $(readlink -f $0)`
-cd ${BASEDIR}/../
-
WGET=$(which wget)
URL="http://pluto.fsinf.at/~astra/config/"
FILE="skel.tar.gz"
@@ -12,10 +8,10 @@ CLEAN=".vim"
# fetch file from server
$WGET -q "${URL}${FILE}"
-if [ $1 -eq "clean"]; then
+if [ "$1" == "clean" ]; then
for i in $CLEAN
do
- echo "rm -rf ${i}"
+ rm -rf $i
done
fi