checking dryrun

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/distributions/smartgears-distribution@93938 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Andrea Manzi 2014-03-31 17:09:18 +00:00
parent 2ad2eb90f4
commit 11c47630b0
1 changed files with 13 additions and 10 deletions

View File

@ -187,19 +187,22 @@ fi
#creating the symlink to shared and apps folder
ln -s $shared $ghnhome/lib
if [ -z "$dryrun" ]; then
ln -s $shared $ghnhome/lib
if [ "$?" != "0" ]; then
echo -e "\nFailed to create the symlink to $shared folder"
exit 1
if [ "$?" != "0" ]; then
echo -e "\nFailed to create the symlink to $shared folder"
exit 1
fi
fi
ln -s $apps $ghnhome/apps
if [ "$?" != "0" ]; then
echo -e "\nFailed to create the symlink to $apps folder"
exit 1
if [ -z "$dryrun" ]; then
ln -s $apps $ghnhome/apps
if [ "$?" != "0" ]; then
echo -e "\nFailed to create the symlink to $shared folder"
exit 1
fi
fi
echo -e "\ndone.\n"