Skip to content

Commit

Permalink
fix(app, ios-config): use fully-specified path for /usr/bin/head
Browse files Browse the repository at this point in the history
It appears we have an expectation about what `head` binary will do,
and XAMMP at least bundles a different `head` which does not meet our
expectations.

This is a basic unix utility on all macs via the base install, so the full path to the
base install version should be a reasonable fix

Fixes #5801
  • Loading branch information
mikehardy committed Oct 21, 2021
1 parent 6f435cf commit 87bff4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/ios_config.sh
Expand Up @@ -66,7 +66,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 87bff4a

Please sign in to comment.