Update shell code
Now it (mostly) passes shellcheck and is formatted with shfmt.
This commit is contained in:
4
cmd
4
cmd
@@ -6,7 +6,7 @@
|
||||
|
||||
set -eu
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
subcmd="$1"
|
||||
|
||||
@@ -16,6 +16,6 @@ subcmd="$1"
|
||||
|
||||
shift
|
||||
|
||||
echo will run "$DIR"/framework/cmd.d/"$subcmd" "$@"
|
||||
echo will run "$DIR"/framework/cmd.d/"$subcmd" "$@"
|
||||
|
||||
exec "$DIR"/framework/cmd.d/"$subcmd" "$@"
|
||||
|
||||
Reference in New Issue
Block a user