Skip to content

Commit

Permalink
fix for dryrun mode -d flag
Browse files Browse the repository at this point in the history
  • Loading branch information
telamonian committed Dec 26, 2019
1 parent 0021964 commit 2810829
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ sedvar() {
done

# clean up sed backup
rm "${fname}.bak"
dryecho rm "${fname}.bak"
}

# replace the value for a key in a .strings file
Expand Down Expand Up @@ -219,7 +219,11 @@ printf "done\n\n"

# modify the localization strings. Fixes visible name in finder
printf "Modifying app's localized .strings resources...\n"
dryecho INFO_PLIST_STRINGS=$(find "${ABS_RESOURCES}" -name "InfoPlist.strings")
if [ "$dryrun" = "-d" ]; then
INFO_PLIST_STRINGS="InfoPlist.strings"
else
INFO_PLIST_STRINGS=$(find "${ABS_RESOURCES}" -name "InfoPlist.strings")
fi
dryecho sedStringsFile CFBundleDisplayName "${APP_NAME}" ${INFO_PLIST_STRINGS}
dryecho sedStringsFile CFBundleName "${APP_NAME}" ${INFO_PLIST_STRINGS}
printf "done\n\n"
Expand Down

0 comments on commit 2810829

Please sign in to comment.