save-config: fix syntax error [Closes: issue1247]
authorMichael Prokop <mika@grml.org>
Mon, 25 Mar 2013 09:11:15 +0000 (10:11 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 25 Mar 2013 09:11:53 +0000 (10:11 +0100)
Thanks: Falko Mach

bin/save-config

index 9a7af99..fea435a 100755 (executable)
@@ -20,7 +20,7 @@
 
   if [ -d /lib/live/mount/overlay ] ; then # since around December 2012
     CHANGE_DIR='/lib/live/mount/overlay'
 
   if [ -d /lib/live/mount/overlay ] ; then # since around December 2012
     CHANGE_DIR='/lib/live/mount/overlay'
-  if [ -d /live/overlay ] ; then  # until around December 2012
+  elif [ -d /live/overlay ] ; then  # until around December 2012
     CHANGE_DIR='/live/overlay'
   elif [ -d /live/image ] ; then # old version
     CHANGE_DIR='/live/image'
     CHANGE_DIR='/live/overlay'
   elif [ -d /live/image ] ; then # old version
     CHANGE_DIR='/live/image'