diff options
author | Soispha <soispha@vhack.eu> | 2023-05-28 22:09:21 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-28 22:09:21 +0200 |
commit | 1f79cb3c844a4e03ad0bf2f8f18518d437caaa27 (patch) | |
tree | ebabfb23296e87bd8d2747efad62cb7591ca3871 /bootstrap/activate | |
parent | Build(flake): Update (diff) | |
download | nixos-config-1f79cb3c844a4e03ad0bf2f8f18518d437caaa27.tar.gz nixos-config-1f79cb3c844a4e03ad0bf2f8f18518d437caaa27.zip |
Fix(bootstrap): Quote scripts
Diffstat (limited to 'bootstrap/activate')
-rwxr-xr-x | bootstrap/activate/activate.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bootstrap/activate/activate.sh b/bootstrap/activate/activate.sh index d34a2826..5dc13ea5 100755 --- a/bootstrap/activate/activate.sh +++ b/bootstrap/activate/activate.sh @@ -4,12 +4,12 @@ SHELL_LIBRARY_VERSION="1.1.3" . %SHELL_LIBRARY_PATH mne() { - mount --mkdir --options compress-force=zstd:15,subvol="$1" $DISK_ROOT "$2" || dien "Mounting of $1"; + mount --mkdir --options compress-force=zstd:15,subvol="$1" "$DISK_ROOT" "$2" || dien "Mounting of $1"; } available_disks="$(mktmp)"; -lsblk -J | jq '.[] | map(.name) | [foreach .[] as $item ({item: null, index: -1}; {$item, index: (.index + 1)})]' > $available_disks; +lsblk -J | jq '.[] | map(.name) | [foreach .[] as $item ({item: null, index: -1}; {$item, index: (.index + 1)})]' > "$available_disks"; [ "$(jq '.[]' "$available_disks" | wc -l)" -eq 0 ] && die "No disks found" |