Skip to content
Browse files

should be back where i was before the incident.

  • Loading branch information...
1 parent 916fe9c commit a91e29d6b755d536a965005b5f37e9ae81502500 BuzzTroll committed
Showing with 12 additions and 4 deletions.
  1. +12 −4 lantorrent/install.sh
View
16 lantorrent/install.sh
@@ -13,15 +13,22 @@ echo "---------------------"
echo "installing lantorrent"
echo "---------------------"
+src_dir=`dirname $0`
+cd $src_dir
+rc=$?
+if [ $rc -ne 0 ]; then
+ echo "could not change directories"
+ exit $rc
+fi
+src_dir=`pwd`
+
installdir=$1
+mkdir $installdir
cd $installdir
installdir=`pwd`
-dir=`dirname $0`
-cd $dir
-src_dir=`pwd`
-mkdir $installdir
+echo "copying from $src_dir to $installdir"
cp -r $src_dir/* $installdir/
rc=$?
if [ $rc -ne 0 ]; then
@@ -43,4 +50,5 @@ if [ $rc -ne 0 ]; then
echo "could not create the database"
exit $rc
fi
+echo "Success"
exit 0

0 comments on commit a91e29d

Please sign in to comment.
Something went wrong with that request. Please try again.