From 45fd6e1f1337e6d03c950a4160b7b05d100487f9 Mon Sep 17 00:00:00 2001 From: Pierre Fenoll Date: Thu, 14 Dec 2017 14:45:35 +0100 Subject: In kerl line 646: OSVERSION=`uname -r` ^-- SC2006: Use $(..) instead of legacy `..`. -- RELVERSION=`get_otp_version "$1"` ^-- SC2034: RELVERSION appears unused. Verify it or export it. ^-- SC2006: Use $(..) instead of legacy `..`. -- In kerl line 1239: dirs=`find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;` ^-- SC2006: Use $(..) instead of legacy `..`. -- In kerl line 1240: apps=`for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo` ^-- SC2006: Use $(..) instead of legacy `..`. -- In kerl line 2003: ACTIVE_PATH=`get_active_path` ^-- SC2006: Use $(..) instead of legacy `..`. In kerl line 2016: ACTIVE_PATH=`get_active_path` ^-- SC2006: Use $(..) instead of legacy `..`. --- kerl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kerl b/kerl index 6ae3b34..48de870 100755 --- a/kerl +++ b/kerl @@ -648,8 +648,8 @@ _do_build() { case "$KERL_SYSTEM" in Darwin) - OSVERSION=`uname -r` - RELVERSION=`get_otp_version "$1"` + OSVERSION=$(uname -r) + RELVERSION=$(get_otp_version "$1") # Ensure that the --enable-darwin-64bit flag is set on all macOS # That way even on older Erlangs we get 64 bit Erlang builds @@ -1241,8 +1241,8 @@ build_plt() plt=$dialyzerd/plt build_log=$dialyzerd/build.log dialyzer=$1/bin/dialyzer - dirs=`find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;` - apps=`for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo` + dirs=$(find $1/lib -maxdepth 2 -name ebin -type d -exec dirname {} \;) + apps=$(for app in $dirs; do basename $app | cut -d- -f1 ; done | grep -Ev 'erl_interface|jinterface' | xargs echo) $dialyzer --output_plt $plt --build_plt --apps $apps >> $build_log 2>&1 status=$? if [ $status -eq 0 ] || [ $status -eq 2 ]; then @@ -1482,7 +1482,7 @@ list_print() if [ -z "$2" ]; then cat "$KERL_BASE_DIR/otp_$1" else - echo `cat "$KERL_BASE_DIR/otp_$1"` + echo $(cat "$KERL_BASE_DIR/otp_$1") fi return 0 fi @@ -2092,7 +2092,7 @@ case "$1" in fi ;; plt) - ACTIVE_PATH=`get_active_path` + ACTIVE_PATH=$(get_active_path) if ! do_plt "$ACTIVE_PATH"; then exit 1; fi @@ -2105,7 +2105,7 @@ case "$1" in list_print installations echo "----------" if do_active; then - ACTIVE_PATH=`get_active_path` + ACTIVE_PATH=$(get_active_path) if [ -n "$ACTIVE_PATH" ]; then do_plt "$ACTIVE_PATH" print_buildopts "$ACTIVE_PATH" -- cgit v1.2.3