diff options
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/hostname.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/hostname.in b/init.d/hostname.in index c144a710..d7913bed 100644 --- a/init.d/hostname.in +++ b/init.d/hostname.in @@ -26,7 +26,7 @@ start() else # HOSTNAME variable used to be defined in caps in conf.d/hostname. # It is also a magic variable in bash. - h=${hostname-${HOSTNAME}} # checkbashisms: false positive + h=${hostname:-${HOSTNAME}} # checkbashisms: false positive (HOSTNAME var) fi if [ -z "$h" ]; then einfo "Using default system hostname" |