summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeorge Miller <George@livio.io>2022-06-14 11:10:57 -0400
committerGeorge Miller <George@livio.io>2022-06-14 11:10:57 -0400
commitbda56abd45927a578c41a1fdfaaa2541c812aad2 (patch)
treee295bda6e59a7b6a3db8f00055e0ef33462f703c /scripts
parent42a808235938c3a85a8a144513d7fa9e90e4efd2 (diff)
downloadsdl_ios-bda56abd45927a578c41a1fdfaaa2541c812aad2.tar.gz
trim
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/publicscript.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/publicscript.sh b/scripts/publicscript.sh
index 045d855e5..acbae7717 100755
--- a/scripts/publicscript.sh
+++ b/scripts/publicscript.sh
@@ -39,9 +39,9 @@ for public_fileref in $public_fileref_list
do
# Pick out the lines with the file reference
publicref_lines="$(sed -n "/$public_fileref/{p;}" $project_file)"
- # Trim everything before "path", then eliminate "=", " ", and quotes
+ # Trim everything before "path", then trim "=", " ", and quotes
publicref_path=$(sed -n '/path/{s/^.*path//;s/=//;s/\"//g;s/^[[:space:]]*//g;p;}' <<< "$publicref_lines")
- # Eliminate everything after the ";"
+ # Trim after the ";"
publicref_path=$(sed -n 's/\;.*//p;' <<< "$publicref_path")
# Test to see if the file is at that path