aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/system-upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/system-upgrade')
-rwxr-xr-xshare/hydractl/system-upgrade8
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