]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
refactor(dracut): rename help_output to threecpio_help_output
authorBenjamin Drung <benjamin.drung@canonical.com>
Sat, 24 Jan 2026 15:30:34 +0000 (16:30 +0100)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 25 Jan 2026 13:54:42 +0000 (08:54 -0500)
dracut.sh
lsinitrd.sh

index 4fc4783b0031720ae356b58cad53d9e9ef6a43a0..8c5fa87dffcaf2a98a9f528b5327289152527802 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -2077,8 +2077,8 @@ fi
 
 CPIO=cpio
 if command -v 3cpio > /dev/null; then
-    if help_output=$(3cpio --help); then
-        if echo "$help_output" | grep -q -- --create; then
+    if threecpio_help_output=$(3cpio --help); then
+        if echo "$threecpio_help_output" | grep -q -- --create; then
             CPIO=3cpio
         else
             dinfo "3cpio does not support --create. Falling back to cpio."
index 32ee28dd4209a5bad7ed1f3529e55ab3af5a3edc..4a26bd4af0e6dca0e679f50d72c64945555e9383 100755 (executable)
@@ -98,8 +98,8 @@ done
 
 CPIO=cpio
 if command -v 3cpio > /dev/null; then
-    if help_output=$(3cpio --help); then
-        if echo "$help_output" | grep -q -- --make-directories; then
+    if threecpio_help_output=$(3cpio --help); then
+        if echo "$threecpio_help_output" | grep -q -- --make-directories; then
             CPIO=3cpio
         fi
     elif command -v cpio > /dev/null; then