File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ hasSudo=$(has sudo)
1818hasDoas=$( has doas)
1919hasWget=$( has wget)
2020hasCurl=$( has curl)
21- hasSetsid=$( has setsid)
21+ hasSetsid=$( if [ " $( has setsid) " = " y " ] && setsid --wait true 2> /dev/null ; then echo " y " ; else echo " n " ; fi )
2222hasNixOSFacter=$( command -v nixos-facter > /dev/null && echo " y" || echo " n" )
2323FACTS
Original file line number Diff line number Diff line change @@ -993,7 +993,7 @@ main() {
993993 fi
994994
995995 if [[ ${hasSetsid-n} == " n" ]]; then
996- abort " no setsid command found, but required to run the kexec script under a new session"
996+ abort " no setsid command respecting --wait found, but required to run the kexec script under a new session"
997997 fi
998998
999999 if [[ ${isOs} != " Linux" ]]; then
You can’t perform that action at this time.
0 commit comments