diff options
| author | 2016-03-01 15:48:44 +0100 | |
|---|---|---|
| committer | 2016-03-02 10:22:47 +0100 | |
| commit | ba09a1b9e66c3d782d82eda3991da6efb2dfee79 (patch) | |
| tree | e61a75951918d2164f5f200d7cf2f63ee61c2f9b | |
| parent | Fix small issues in README (diff) | |
| download | ctmg-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-x | ctmg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ CT_FILE_SUFFIX=".ct" CT_MAPPER_PREFIX="ct_" trace() { - echo "[#] $@" + echo "[#] $*" "$@" } |
