From 4512b0d626ae64bc99df1c44a4c0a5712eafd721 Mon Sep 17 00:00:00 2001 From: redxef Date: Thu, 30 May 2024 00:55:29 +0200 Subject: [PATCH] Remove useless reassign when exporting. --- qemu-vm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"