File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 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 @@ -50,6 +50,7 @@ hasTar=
50
50
hasCpio=
51
51
hasSudo=
52
52
hasDoas=
53
+ hasRun0=
53
54
hasWget=
54
55
hasCurl=
55
56
hasSetsid=
@@ -474,7 +475,7 @@ importFacts() {
474
475
# shellcheck disable=SC2046
475
476
export $( echo " $filteredFacts " | xargs)
476
477
477
- for var in isOs isArch isKexec isInstaller isContainer hasIpv6Only hasTar hasCpio hasSudo hasDoas hasWget hasCurl hasSetsid; do
478
+ for var in isOs isArch isKexec isInstaller isContainer hasIpv6Only hasTar hasCpio hasSudo hasDoas hasRun0 hasWget hasCurl hasSetsid; do
478
479
if [[ -z ${! var} ]]; then
479
480
abort " Failed to retrieve fact $var from host"
480
481
fi
@@ -772,6 +773,8 @@ main() {
772
773
maybeSudo=" sudo"
773
774
elif [[ ${hasDoas-n} == " y" ]]; then
774
775
maybeSudo=" doas"
776
+ elif [[ ${hasRun0-n} == " y" ]]; then
777
+ maybeSudo=" run0"
775
778
fi
776
779
777
780
if [[ ${isOs} != " Linux" ]]; then
You can’t perform that action at this time.
0 commit comments