File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2323
2424if [ " $( id --user) " != ' 0' ]; then
2525 true " INFO: Not running as root. Re-executing using sudo."
26- sudo -- " $0 " " $@ "
26+ if test -o xtrace; then
27+ # # XXX: Might add a superfluous ':xtrace'.
28+ sudo -- env SHELLOPTS=" ${SHELLOPTS-} :xtrace" " $0 " " $@ "
29+ else
30+ sudo -- " $0 " " $@ "
31+ fi
2732 exit " $? "
2833fi
2934
Original file line number Diff line number Diff line change 2828
2929if [ " $( id --user) " != ' 0' ]; then
3030 true " INFO: Not running as root. Re-executing using sudo."
31- sudo DISPLAY=" ${DISPLAY-} " " $0 " " $@ "
31+ if test -o xtrace; then
32+ # # XXX: Might add a superfluous ':xtrace'.
33+ sudo -- env SHELLOPTS=" ${SHELLOPTS-} :xtrace" DISPLAY=" ${DISPLAY-} " " $0 " " $@ "
34+ else
35+ sudo DISPLAY=" ${DISPLAY-} " -- " $0 " " $@ "
36+ fi
3237 exit " $? "
3338fi
3439
You can’t perform that action at this time.
0 commit comments