summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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