Skip to content

Commit

Permalink
fix(ios): use fully-specified path to required head utility
Browse files Browse the repository at this point in the history
this removes any possible ambiguity on what utility we require for config,
solving a problem where sometimes a utility that performs HTTP HEAD requests
is found instead of the standard BSD file utility
  • Loading branch information
mikehardy committed Nov 27, 2022
1 parent 95d53cb commit fe69aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ while true; do
_CURRENT_SEARCH_DIR=$(dirname "$_CURRENT_SEARCH_DIR")
if [[ "$_CURRENT_SEARCH_DIR" == "/" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;
echo "info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file."
_SEARCH_RESULT=$(find "$_CURRENT_SEARCH_DIR" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | head -n 1)
_SEARCH_RESULT=$(find "$_CURRENT_SEARCH_DIR" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)
if [[ ${_SEARCH_RESULT} ]]; then
echo "info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT"
break;
Expand Down

0 comments on commit fe69aa4

Please sign in to comment.