diff options
author | George Miller <George@livio.io> | 2022-06-28 14:03:54 -0400 |
---|---|---|
committer | George Miller <George@livio.io> | 2022-06-28 14:03:54 -0400 |
commit | 36cc544a143ecd417e274ce08baab586581c2c46 (patch) | |
tree | fa96b9a3610629cc1c39efdfda1f2ed2ad913925 /scripts | |
parent | 571c05e90ed2d3fa8c3a54f49f6110f3ec712b20 (diff) | |
download | sdl_ios-36cc544a143ecd417e274ce08baab586581c2c46.tar.gz |
update per review
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/project_file_header_fix.sh | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/scripts/project_file_header_fix.sh b/scripts/project_file_header_fix.sh index 947e6f1b9..f57ea5c53 100755 --- a/scripts/project_file_header_fix.sh +++ b/scripts/project_file_header_fix.sh @@ -14,8 +14,8 @@ # Any file located in private/ needs to NOT be referenced in the project header project_file="SmartDeviceLink-iOS.xcodeproj/project.pbxproj" -target_path="SmartDeviceLink/" -project_header=$target_path"public/SmartDeviceLink.h" +target_path="SmartDeviceLink" +project_header=$target_path"/public/SmartDeviceLink.h" # A utility function for prompting the user Y/N @@ -115,7 +115,7 @@ if [ ! -z "$broken_file_list" ]; then header_type="${header_file##*==}" # Figure out where the file should be located - destiny=$target_path$header_type"/" + destiny=$target_path"/"$header_type"/" # Move the file to the correct destination mv -f $header_filepath $destiny @@ -162,7 +162,7 @@ else fi # Find all header files in public/ -public_file_list=$(find "$target_path"public -name '*.h') +public_file_list=$(find "$target_path"/public -name '*.h') if [ ! -z "$public_file_list" ]; then for header_file in $public_file_list @@ -191,7 +191,7 @@ else fi # Find all header files in private/ -private_file_list=$(find "$target_path"private -name '*.h') +private_file_list=$(find "$target_path"/private -name '*.h') if [ ! -z "$private_file_list" ]; then for private_header_file in $private_file_list @@ -220,5 +220,4 @@ else echo "No private header files were found in "$project_header fi -echo "Done checking public / private headers for correctness..." -read user_input +echo "Done checking public / private headers for correctness" |