Skip to content

Commit

Permalink
small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raduab committed May 18, 2016
1 parent b0f247a commit 01a69c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cf-ddns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ storage_dir=${storage_dir%%+(/)}
cf_api_url=${cf_api_url%%+(/)}
# Show help and exit if no option was passed in the command line
if [ -n $@ ]; then
if [ -z "${1}" ]; then
echo "${helptext}"
exit 0
fi
Expand Down Expand Up @@ -384,8 +385,7 @@ case $run_mode in
;;
get-record-id)
get_record_id #TBD - refactor
echo "Record ID for ${zone_name}:"
echo "${record_id}"
echo "Record ID for ${zone_name}: ${record_id}"
exit 0
;;
esac
Expand Down Expand Up @@ -413,7 +413,7 @@ if [ -n $prev_addr ] && [ "${prev_addr}" = "${WAN_addr}" ] && [ $force = false ]
exit 0
fi
if [ $run_mode = "test" ]; then
if [ "$run_mode" = "test" ]; then
echo "TEST: In zone ${zone_name}[${zone_id}],"
echo " update A record ${record_name}[${record_id}]"
echo " to point to ${WAN_addr}"
Expand Down

0 comments on commit 01a69c1

Please sign in to comment.