diff --git a/qemu-vm b/qemu-vm index c049921..06f0bd6 100755 --- a/qemu-vm +++ b/qemu-vm @@ -66,8 +66,8 @@ MEM_PATH="$(SUDO="$SUDO" qemu-vm-mem init "$NUM_MEM")" t="$(mktemp -d)" for f in "$CONFIG_PATH_ARGUMENTS/"*.sh "$CONFIG_PATH_ARGUMENTS_SPECIFIC/"*.sh; do ( - export SUDO="$SUDO" - export MEM_PATH="$MEM_PATH" + export SUDO + export MEM_PATH source "$f" newfile="$(basename "$f" .sh)" envsubst < "${f%.sh}" > "$t/$newfile"