aboutsummaryrefslogtreecommitdiff
path: root/sh/functions.sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-29 11:23:06 +0000
committerRoy Marples <roy@marples.name>2007-11-29 11:23:06 +0000
commit82df7e4584282896a0618f14cca2dd3f3d23e8a2 (patch)
tree05a0c01d32adbbb2df8d833b97918454a3178a04 /sh/functions.sh
parent50161bef0e27ca235d876b888ae5abcafbec2ac7 (diff)
Use shorthand for loops
Diffstat (limited to 'sh/functions.sh')
-rw-r--r--sh/functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/functions.sh b/sh/functions.sh
index 0a1ba817..fd67cb2b 100644
--- a/sh/functions.sh
+++ b/sh/functions.sh
@@ -78,7 +78,7 @@ is_older_than() {
local x= ref="$1"
shift
- for x in "$@"; do
+ for x; do
[ -e "${x}" ] || continue
# We need to check the mtime if it's a directory too as the
# contents may have changed.
@@ -163,7 +163,7 @@ fi
export PATH="/lib/rc/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin$(_sanitize_path "${PATH}")"
unset _sanitize_path
-for arg in "$@"; do
+for arg; do
case "${arg}" in
--nocolor|--nocolour|-C)
export RC_NOCOLOR="yes"