Skip to content

Commit

Permalink
find doesn't support -printf on all platforms, so work around that wi…
Browse files Browse the repository at this point in the history
…th '-exec basename' since we just want the filename. Issue graysky2#344
  • Loading branch information
morgant committed Jan 1, 2023
1 parent e678497 commit 0b81842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/profile-sync-daemon.in
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fi

# scope to sync defined in BROWSERS array or from list of supported browsers
if [[ -z "$BROWSERS" ]]; then
mapfile -t BROWSERS < <(find "$SHAREDIR/browsers" -type f -printf "%f\n")
mapfile -t BROWSERS < <(find "$SHAREDIR/browsers" -type f -exec basename {} \;)
else
if ! declare -p BROWSERS | grep -q 'declare -a'; then
# did not setup as array so redefine it here
Expand Down

0 comments on commit 0b81842

Please sign in to comment.