diff options
Diffstat (limited to 'share/hydractl/system-upgrade')
-rwxr-xr-x | share/hydractl/system-upgrade | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade index f2e3917..a309658 100755 --- a/share/hydractl/system-upgrade +++ b/share/hydractl/system-upgrade @@ -121,8 +121,12 @@ if [ ! -e "$STATE" ]; then else # Resume from the previous state STAGE="`cat $STATE`" - source $ENV - hydra_system_upgrade_$STATE + + # Restore environment + if [ -e "$ENV" ]; then + source $ENV + hydra_system_upgrade_$STATE + fi fi # Prepare |