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

@ -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..."