From 11c47630b0efb55dfa2adedc60f552af02b1c848 Mon Sep 17 00:00:00 2001 From: Andrea Manzi Date: Mon, 31 Mar 2014 17:09:18 +0000 Subject: [PATCH] checking dryrun git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/distributions/smartgears-distribution@93938 82a268e6-3cf1-43bd-a215-b396298e98cf --- distro/contents/install | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/distro/contents/install b/distro/contents/install index c212e62..19ec2d1 100755 --- a/distro/contents/install +++ b/distro/contents/install @@ -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"