From 8dc044fee9e5e0342c31fe2aea96d6003e6f8a08 Mon Sep 17 00:00:00 2001 From: Moritz Grimm Date: Fri, 7 Jul 2017 16:43:08 +0200 Subject: [PATCH] Be consistent about using $() instead of `` --- autogen.sh | 4 ++-- examples/playlist-logger.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autogen.sh b/autogen.sh index 614acaf..2a717bf 100755 --- a/autogen.sh +++ b/autogen.sh @@ -5,8 +5,8 @@ PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin: _ac_version="2.69" _am_version="1.14" -if [ ! -f "./`basename $0`" ]; then - echo "Please chdir into `basename $0`'s directory first." +if [ ! -f "./$(basename $0)" ]; then + echo "Please chdir into $(basename $0)'s directory first." exit 1 fi diff --git a/examples/playlist-logger.sh b/examples/playlist-logger.sh index 4f38b2b..fad154d 100755 --- a/examples/playlist-logger.sh +++ b/examples/playlist-logger.sh @@ -66,7 +66,7 @@ test -n "${REPEAT}" || REPEAT=0 # Set up helper files: _state="${STATE_DIR}/${_myname}.state" -_playlist="`mktemp "${STATE_DIR}/${_myname}.XXXXXXXXXX"`" +_playlist="$(mktemp "${STATE_DIR}/${_myname}.XXXXXXXXXX")" if [ $? -ne 0 ]; then echo "${_myname}: Unable to create temporary file." >&2 exit 1