aboutsummaryrefslogtreecommitdiff
path: root/bin/bcq.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-31 14:19:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-31 14:29:17 +1300
commit0c84989ca0b97ca1d075e7a304a407553e34381d (patch)
tree2188a585aef6ed345b1c575da6f63445baabf522 /bin/bcq.sh
parentAdd clarifying comment (diff)
downloaddotfiles-0c84989ca0b97ca1d075e7a304a407553e34381d.tar.gz
dotfiles-0c84989ca0b97ca1d075e7a304a407553e34381d.zip
Clarify control flow in shell scripts
Diffstat (limited to 'bin/bcq.sh')
-rw-r--r--bin/bcq.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/bcq.sh b/bin/bcq.sh
index a6c0fe60..1f4f3f9e 100644
--- a/bin/bcq.sh
+++ b/bin/bcq.sh
@@ -1,3 +1,5 @@
# Fire up bc(1), hushing it if it looks like GNU
-[ -e "$HOME"/.cache/sh/opt/bc/quiet ] && set -- --quiet "$@"
+if [ -e "$HOME"/.cache/sh/opt/bc/quiet ] ; then
+ set -- --quiet "$@"
+fi
exec bc "$@"