diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-10-01 15:29:54 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-10-01 15:29:54 +0100 |
commit | 72c9822ae00bab52827cdf60afbe75e96e064545 (patch) | |
tree | d618b6e55188d81f823d5c79811676642e5b4ea8 | |
parent | 15b35ed42b0b90bad1e8ee2f119be23e0eda9e7f (diff) | |
download | prosody-72c9822ae00bab52827cdf60afbe75e96e064545.tar.gz prosody-72c9822ae00bab52827cdf60afbe75e96e064545.zip |
configure: Replace backticks with $()
-rwxr-xr-x | configure | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -92,7 +92,7 @@ EOF # Helper functions find_program() { - prog=`command -v "$1" 2>/dev/null` + prog=$(command -v "$1" 2>/dev/null) if [ -n "$prog" ] then dirname "$prog" @@ -124,9 +124,9 @@ echo_n() { while [ -n "$1" ] do - value="`echo $1 | sed 's/[^=]*.\(.*\)/\1/'`" - key="`echo $1 | sed 's/=.*//'`" - if `echo "$value" | grep "~" >/dev/null 2>/dev/null` + value=$(echo "$1" | sed 's/[^=]*.\(.*\)/\1/') + key=$(echo "$1" | sed 's/=.*//') + if echo "$value" | grep "~" >/dev/null 2>/dev/null then echo echo '*WARNING*: the "~" sign is not expanded in flags.' @@ -338,7 +338,7 @@ then fi detect_lua_version() { - detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null` + detected_lua=$("$1" -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null) if [ "$detected_lua" != "nil" ] then if [ "$LUA_VERSION_SET" != "yes" ] @@ -367,7 +367,7 @@ search_interpreter() { find_lua="$LUA_BINDIR" fi else - find_lua=`find_program lua$suffix` + find_lua=$(find_program lua"$suffix") fi if [ -n "$find_lua" -a -x "$find_lua/lua$suffix" ] then @@ -380,7 +380,7 @@ search_interpreter() { fi if [ "$LUA_DIR_SET" != "yes" ] then - LUA_DIR=`dirname "$find_lua"` + LUA_DIR=$(dirname "$find_lua") fi LUA_SUFFIX="$suffix" return 0 |