We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b16c7 commit dcbbd76Copy full SHA for dcbbd76
dietpi/func/dietpi-globals
@@ -392,7 +392,7 @@ $grey─────────────────────────
392
(( $EUID )) || return 0
393
394
# Invoking shell is not a script
395
- if [[ $0 == 'bash' || $0 == *'/bash' ]]
+ if [[ $0 == '-bash' || $0 == 'bash' || $0 == *'/bash' ]]
396
then
397
# Invoking function is a G_* function, try to run with G_SUDO
398
if [[ ${FUNCNAME[1]} == 'G_'* ]]
0 commit comments