aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMicha Rosenbaum <micha@rosetree.de>2016-03-01 15:48:44 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-03-02 10:22:47 +0100
commitba09a1b9e66c3d782d82eda3991da6efb2dfee79 (patch)
treee61a75951918d2164f5f200d7cf2f63ee61c2f9b
parentFix small issues in README (diff)
downloadctmg-ba09a1b9e66c3d782d82eda3991da6efb2dfee79.tar.xz
ctmg-ba09a1b9e66c3d782d82eda3991da6efb2dfee79.zip
Use $* instead of $@ in echo
This resolves an shellcheck issue with `ctmg.sh` and makes usage of echo more consistent: `die()` already used `$*` but `trace()` didn't. See-Also: https://github.com/koalaman/shellcheck/wiki/SC2145 "SC2145: Argument mixes string and array. Use * or separate argument." Use `$ shellcheck ctmg.sh` or http://www.shellcheck.net/ to check.
-rwxr-xr-xctmg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctmg.sh b/ctmg.sh
index 9eaa79c..0b62833 100755
--- a/ctmg.sh
+++ b/ctmg.sh
@@ -19,7 +19,7 @@ CT_FILE_SUFFIX=".ct"
CT_MAPPER_PREFIX="ct_"
trace() {
- echo "[#] $@"
+ echo "[#] $*"
"$@"
}