projects
/
grml-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
usr_sbin/grml-config-root: Fix a couple of shellcheck warnings
[grml-scripts.git]
/
usr_sbin
/
grml-config-root
diff --git
a/usr_sbin/grml-config-root
b/usr_sbin/grml-config-root
index
e1e1158
..
db6a2a5
100755
(executable)
--- a/
usr_sbin/grml-config-root
+++ b/
usr_sbin/grml-config-root
@@
-9,8
+9,8
@@
PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
# set up some variables
PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'}
# set up some variables
-DIALOG=
`which dialog`
-PN=$(basename
$0
)
+DIALOG=
$(command -v dialog)
+PN=$(basename
"$0"
)
if [ "$(id -ru)" != "0" ] ; then
$DIALOG --msgbox "Error: $0 requires root permissions. Exiting." 0 0
if [ "$(id -ru)" != "0" ] ; then
$DIALOG --msgbox "Error: $0 requires root permissions. Exiting." 0 0