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)
1616hasCpio=$( has cpio)
1717hasSudo=$( has sudo)
1818hasDoas=$( has doas)
19+ hasRun0=$( has run0)
1920hasWget=$( has wget)
2021hasCurl=$( has curl)
2122hasSetsid=$( has setsid)
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ hasTar=
5050hasCpio=
5151hasSudo=
5252hasDoas=
53+ hasRun0=
5354hasWget=
5455hasCurl=
5556hasSetsid=
@@ -474,7 +475,7 @@ importFacts() {
474475 # shellcheck disable=SC2046
475476 export $( echo " $filteredFacts " | xargs)
476477
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
478479 if [[ -z ${! var} ]]; then
479480 abort " Failed to retrieve fact $var from host"
480481 fi
@@ -772,6 +773,8 @@ main() {
772773 maybeSudo=" sudo"
773774 elif [[ ${hasDoas-n} == " y" ]]; then
774775 maybeSudo=" doas"
776+ elif [[ ${hasRun0-n} == " y" ]]; then
777+ maybeSudo=" run0"
775778 fi
776779
777780 if [[ ${isOs} != " Linux" ]]; then
You can’t perform that action at this time.
0 commit comments