fix shellcheck errors in 2004/hibachi/src/hibachi-start.sh

This commit is contained in:
Landon Curt Noll committed 2024-03-11 00:34:53 -07:00
1 parent b9e60828f1
commit e6ecc45293
1 file changed
+13 -12
+13 -12
View File
@@ -27,13 +27,13 @@
IFS=' IFS='
' '
SED=$(which sed) SED=$(command -v sed)
# #
# Get a clean environment to work with. This works for all # Get a clean environment to work with. This works for all
# Bourne like shells under Linux and Cygwin environments. # Bourne like shells under Linux and Cygwin environments.
# #
unset $(env | $SED -e 's/^\([^=]*\).*/\1/') unset "$(env | $SED -e 's/^\([^=]*\).*/\1/')"
# #
# Path of safe executables. # Path of safe executables.
@@ -54,15 +54,15 @@ unset CDPATH
# Minimum required for serving static files. # Minimum required for serving static files.
####################################################################### #######################################################################
prefix=/usr/local export prefix=/usr/local
exec_prefix=${prefix} export exec_prefix=${prefix}
datadir=${prefix}/share export datadir=${prefix}/share
sysconfdir=${prefix}/etc export sysconfdir=${prefix}/etc
sharedstatedir=${prefix}/com export sharedstatedir=${prefix}/com
localstatedir=/var export localstatedir=/var
sbindir=${exec_prefix}/sbin export sbindir=${exec_prefix}/sbin
bindir=${exec_prefix}/bin export bindir=${exec_prefix}/bin
# #
# The port to be used by the Hibachi web server. # The port to be used by the Hibachi web server.
@@ -93,13 +93,14 @@ export SERVER_PORT=8008
# 64.81.251.233 -> www.ioccc.org/ # 64.81.251.233 -> www.ioccc.org/
# #
#export DOCUMENT_ROOT=${datadir}/hibachi #export DOCUMENT_ROOT=${datadir}/hibachi
export DOCUMENT_ROOT=$(pwd) export DOCUMENT_ROOT
DOCUMENT_ROOT=$(pwd)
# #
# The executable. # The executable.
# #
#hibachi=${sbindir}/hibachi #hibachi=${sbindir}/hibachi
hibachi=`dirname $0`/hibachi hibachi=$(dirname "$0")/hibachi
####################################################################### #######################################################################
# Required for most CGI scripts. # Required for most CGI scripts.