X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/1a7e3f61d38d679bba59130891c2031b5a0092b6..b58caf92d598c70ddd398b3909b0a2b8b5a110e1:/zic.tproj/generate_zone_file_list.sh diff --git a/zic.tproj/generate_zone_file_list.sh b/zic.tproj/generate_zone_file_list.sh index 839dd63..c28c4da 100755 --- a/zic.tproj/generate_zone_file_list.sh +++ b/zic.tproj/generate_zone_file_list.sh @@ -1,4 +1,6 @@ #!/bin/sh +set -e +set -x # we need to know where the data files are... if [ $# -ne 1 ]; then @@ -7,7 +9,7 @@ if [ $# -ne 1 ]; then fi DATFILES="$1" -ZONE_FILES="$(egrep --files-with-match '^(Zone|Rule|Link)' ${DATFILES}/* | awk -F "/" '{print $NF}')" +ZONE_FILES="$(egrep --files-with-match '^(Zone|Rule|Link)' "${DATFILES}"/* | awk -F "/" '{print $NF}')" for tz in ${ZONE_FILES}; do if [ ${tz} = "backward" ]; then