~akkartik/basic-build

6241e9a4e5c25cc9da82d94fc56b35c17f0b4480 — Kartik K. Agaram 2 years ago a7d88d9
quote more variables

Thanks mulle-nat; fixes https://notabug.org/akkartik/basic-build/issues/2.
1 files changed, 4 insertions(+), 4 deletions(-)

M build
M build => build +4 -4
@@ 14,17 14,17 @@ export CFLAGS="$CFLAGS -std=c99 -Wall -Wextra -ftrapv -fno-strict-aliasing"

# noisily signal success if $1 is older than _any_ of the remaining args
older_than() {
  local target=$1
  local target="$1"
  shift
  if [ ! -e $target ]
  if [ ! -e "$target" ]
  then
    echo "updating $target" >&2
    return 0  # success
  fi
  local f
  for f in $*
  for f in "$@"
  do
    if [ $f -nt $target ]
    if [ "$f" -nt "$target" ]
    then
      echo "updating $target" >&2
      return 0  # success