Commit 1687aee 1 parent 97b45ac commit 1687aee Copy full SHA for 1687aee
File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ hasTar=$(has tar)
16
16
hasCpio=$( has cpio)
17
17
hasSudo=$( has sudo)
18
18
hasDoas=$( has doas)
19
+ hasRun0=$( has run0)
19
20
hasWget=$( has wget)
20
21
hasCurl=$( has curl)
21
22
hasSetsid=$( has setsid)
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ hasTar=
48
48
hasCpio=
49
49
hasSudo=
50
50
hasDoas=
51
+ hasRun0=
51
52
hasWget=
52
53
hasCurl=
53
54
hasSetsid=
@@ -438,7 +439,7 @@ importFacts() {
438
439
# shellcheck disable=SC2046
439
440
export $( echo " $filteredFacts " | xargs)
440
441
441
- for var in isOs isArch isKexec isInstaller isContainer hasIpv6Only hasTar hasCpio hasSudo hasDoas hasWget hasCurl hasSetsid; do
442
+ for var in isOs isArch isKexec isInstaller isContainer hasIpv6Only hasTar hasCpio hasSudo hasDoas hasRun0 hasWget hasCurl hasSetsid; do
442
443
if [[ -z ${! var} ]]; then
443
444
abort " Failed to retrieve fact $var from host"
444
445
fi
@@ -689,6 +690,8 @@ main() {
689
690
maybeSudo=" sudo"
690
691
elif [[ ${hasDoas-n} == " y" ]]; then
691
692
maybeSudo=" doas"
693
+ elif [[ ${hasRun0-n} == " y" ]]; then
694
+ maybeSudo=" run0"
692
695
fi
693
696
694
697
if [[ ${isOs} != " Linux" ]]; then
You can’t perform that action at this time.
0 commit comments