X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_sbin%2Fgrml-config-root;fp=usr_sbin%2Fgrml-config-root;h=db6a2a5871646008681a89789012723d4d3cde5b;hp=e1e11585bf4cb6d2126c4741d3713ef481e8347a;hb=54e2502b301f2220e49e619b263be0e015d807cc;hpb=29bfc533ade39978f73afaecf01062151e43e267 diff --git a/usr_sbin/grml-config-root b/usr_sbin/grml-config-root index e1e1158..db6a2a5 100755 --- 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 -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