Prevent unnecessary variables

This commit is contained in:
Manuel Thalmann 2024-07-27 22:04:08 +02:00
parent 800261791e
commit 061bf429b0

View file

@ -16,15 +16,11 @@ begin
set -l setupLabel "winiso-valhalla"
set -l projectPath "PortValhalla"
set -l localProjectPath "sources/\$OEM\$/\$1/$projectPath"
set -l buildDir "$(status dirname)/build"
set -l cacheDir ~/.cache/winiso-valhalla
set -l isoFile "$buildDir/winiso-valhalla.iso"
set -l winpe "$cacheDir/winpe.iso"
set -l winPath "/media/win"
set -l winpePath "/media/winpe"
set -l valhallaPath "/media/winiso-valhalla"
set -l bootPath "/media/boot"
set -l dataPath "/media/data"
set -l winpeOverlay (mktemp -d)
set -l winOverlay (mktemp -d)
set -l upperDir (mktemp -d)
@ -185,6 +181,8 @@ begin
sudo mount --mkdir -t overlay overlay -o lowerdir="$winOverlay":"$winpePath":"$winPath",upperdir="$upperDir",workdir="$workDir" "$valhallaPath"
if [ -z "$_flag_usb" ]
set -l isoFile "$(status dirname)/build/winiso-valhalla.iso"
mkisofs \
-V "$setupLabel" \
-no-emul-boot \
@ -198,6 +196,9 @@ begin
-output "$isoFile" \
"$valhallaPath"
else
set -l bootPath "/media/boot"
set -l dataPath "/media/data"
set -a mountPaths \
"$bootPath" \
"$dataPath"