Ensure a correct value for $BASH

Previously it was set to /run/current-system/sw/sbin/nologin or
similar.
This commit is contained in:
Eelco Dolstra 2014-11-10 14:09:53 +01:00
parent 78b01de68d
commit 1455ecee73

View File

@ -176,10 +176,11 @@ fi
# Check that the pre-hook initialised SHELL.
if [ -z "$SHELL" ]; then echo "SHELL not set"; exit 1; fi
BASH="$SHELL"
export CONFIG_SHELL="$SHELL"
# Execute the pre-hook.
export CONFIG_SHELL="$SHELL"
if [ -z "$shell" ]; then export shell=$SHELL; fi