Skip to content

Commit

Permalink
fix: trim cmdline if not we got sed error
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Mar 8, 2022
1 parent 1c4fd1f commit e512395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch-secure-boot
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ case "$1" in
trap 'rm -rf $tmp' EXIT
cd "$tmp"

grep -v "^#" "$CMDLINE" > cmdline
grep -m1 -v "^#" "$CMDLINE" > cmdline
sed "s|%%NAME%%|$NAME|g; s|%%CMDLINE%%|$(cat cmdline)|g" "$DIR/recovery.nsh" > recovery.nsh
sed -i "s|subvol=$SUBVOLUME_ROOT|subvol=$SUBVOLUME_SNAPSHOT|g" recovery.nsh

Expand Down

0 comments on commit e512395

Please sign in to comment.