Skip to content

Commit 5baaf13

Browse files
committed
fix(app, ios-config): use fully-specified path for /usr/bin/head
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
1 parent 6f435cf commit 5baaf13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/ios_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ while true; do
6666
_CURRENT_SEARCH_DIR=$(dirname "$_CURRENT_SEARCH_DIR")
6767
if [[ "$_CURRENT_SEARCH_DIR" == "/" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;
6868
echo "info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file."
69-
_SEARCH_RESULT=$(find "$_CURRENT_SEARCH_DIR" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | head -n 1)
69+
_SEARCH_RESULT=$(find "$_CURRENT_SEARCH_DIR" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)
7070
if [[ ${_SEARCH_RESULT} ]]; then
7171
echo "info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT"
7272
break;

0 commit comments

Comments
 (0)