bin: replace double backticks (``) with $()

This has been the recommended way of launching subshells for ages, and is easier
to type and on the eye.

For a quick reference, see:
https://unix.stackexchange.com/questions/5778/whats-the-difference-between-stuff-and-stuff#5782
This commit is contained in:
muxator 2020-03-29 00:53:17 +01:00
parent 1ad6e9c288
commit a181ea8fbe
8 changed files with 11 additions and 11 deletions

View file

@ -24,7 +24,7 @@ find ${SRC}/ -type d -exec chmod 0755 {} \;
find ${SRC}/ -type f -exec chmod go-w {} \;
chown -R root:root ${SRC}/
let SIZE=`du -s ${SYSROOT} | sed s'/\s\+.*//'`+8
let SIZE=$(du -s ${SYSROOT} | sed s'/\s\+.*//')+8
pushd ${SYSROOT}/
tar czf ${DIST}/data.tar.gz [a-z]*
popd

View file

@ -3,7 +3,7 @@
NODE_VERSION="10.18.0"
#Move to the folder where ep-lite is installed
cd `dirname $0`
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then

View file

@ -1,7 +1,7 @@
#!/bin/sh
#Move to the folder where ep-lite is installed
cd `dirname $0`
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
@ -37,5 +37,5 @@ bin/installDeps.sh "$@" || exit 1
#Move to the node folder and start
echo "Started Etherpad..."
SCRIPTPATH=`pwd -P`
SCRIPTPATH=$(pwd -P)
node "${SCRIPTPATH}/node_modules/ep_etherpad-lite/node/server.js" "$@"

View file

@ -1,7 +1,7 @@
#!/bin/sh
#Move to the folder where ep-lite is installed
cd `dirname $0`
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then

View file

@ -49,7 +49,7 @@ require_minimal_version() {
}
#Move to the folder where ep-lite is installed
cd `dirname $0`
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then

View file

@ -1,7 +1,7 @@
#!/bin/sh
#Move to the folder where ep-lite is installed
cd `dirname $0`
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
@ -34,6 +34,6 @@ bin/installDeps.sh "$@" || exit 1
#Move to the node folder and start
echo "Started Etherpad..."
SCRIPTPATH=`pwd -P`
SCRIPTPATH=$(pwd -P)
exec node "$SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js" "$@"

View file

@ -19,7 +19,7 @@ LAST_EMAIL_SEND=0
LOG="$1"
#Move to the folder where ep-lite is installed
cd `dirname $0`
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then

View file

@ -1,7 +1,7 @@
#!/bin/sh
#Move to the folder where ep-lite is installed
cd `dirname $0`
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
@ -9,7 +9,7 @@ if [ -d "../bin" ]; then
fi
# npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}' | xargs npm install $1 --save-dev
OUTDATED=`npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}'`
OUTDATED=$(npm outdated --depth=0 | grep -v "^Package" | awk '{print $1}')
# echo $OUTDATED
if test -n "$OUTDATED"; then
echo "Plugins require update, doing this now..."