Auto deploy prototype #2
[genesis.git] / fuel / prototypes / deploy / deploy / tools / transplant1.sh
@@ -32,10 +32,6 @@ fi
 deafile=$1
 shift
 
-if [ $# -ne 0 ]; then
-  comment="$@"
-fi
-
 if [ ! -f "$deafile" ]; then
   error_exit "Can't find $deafile"
 fi
@@ -47,16 +43,20 @@ envId=`fuel env | tail -n +3 | grep -v '^$' | awk '{ print $1 }'`
 
 fuel settings --env $envId --download --dir $tmpDir > /dev/null || \
   error_exit "Could not get settings"
+
 fuel network --env $envId --download --dir $tmpDir > /dev/null || \
   error_exit "Could not get network settings"
 
 cp $tmpDir/network_${envId}.yaml network_before.yaml
+
+# Transplant network settings
 transplant_network_settings.py $tmpDir/network_${envId}.yaml $deafile || \
   error_exit "Could not transplant network settings"
 fuel network --env $envId --upload --dir $tmpDir || \
   error_exit "Could not update network settings"
 cp $tmpDir/network_${envId}.yaml network_after.yaml
 
+# Transplant settings
 cp $tmpDir/settings_${envId}.yaml settings_before.yaml
 transplant_settings.py $tmpDir/settings_${envId}.yaml $deafile || \
   error_exit "Could not transplant settings"