Skip to content

Commit

Permalink
Merge pull request coreos#1194 from travier/shellcheck-warnings
Browse files Browse the repository at this point in the history
systemd/coreos-installer-generator: Properly read cmdline
  • Loading branch information
bgilbert authored May 31, 2023
2 parents 87edaed + 7053ce8 commit f435871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemd/coreos-installer-generator
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exec 1>/dev/kmsg; exec 2>&1

UNIT_DIR="${1:-/tmp}"

cmdline=( $(</proc/cmdline) )
IFS=" " read -r -a cmdline <<< "$(</proc/cmdline)"
karg() {
local name="$1" value="$2"
for arg in "${cmdline[@]}"; do
Expand Down

0 comments on commit f435871

Please sign in to comment.