From 116f491fdfe087264d65110cc59c47eb23d3063a Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sat, 29 Aug 2015 22:35:27 -0400 Subject: build script: avoid conflicting with existing variable ($option) --- (limited to 'build') diff --git a/build b/build index 829763e..0ddb8fe 100755 --- a/build +++ b/build @@ -48,7 +48,7 @@ option="${2}" shift 2 if [ -d "${build}/${mode}" ]; then - availableoptions="$(for option in ${build}/${mode}/*; do printf "%s\n" "${option##*/}"; done)" + availableoptions="$(for buildoption in ${build}/${mode}/*; do printf "%s\n" "${buildoption##*/}"; done)" if [ "${option}" = "list" ]; then printf "Available options for '%s' are:\nall\n%s\n\n" "${mode}" "${availableoptions}" elif [ -f "${build}/${mode}/${option}" ]; then -- cgit v0.9.1