Skip to content

Commit

Permalink
fixed pesky \r from getting into work array, AGAIN!
Browse files Browse the repository at this point in the history
  • Loading branch information
graysky2 committed Nov 29, 2012
1 parent a34cd2c commit 51049bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions profile-cleaner
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ do_xulbased() {
[[ ! -f $profilepath/profiles.ini ]] && echo "Error: cannot locate $profilepath/profiles.ini to determine names of profiles." && exit 1 [[ ! -f $profilepath/profiles.ini ]] && echo "Error: cannot locate $profilepath/profiles.ini to determine names of profiles." && exit 1


# workArr is a raw list of profiles # workArr is a raw list of profiles
workArr=( $(grep '[P,p]'ath $profilepath/profiles.ini | sed -e 's/[P,p]ath=//') ) # read each profile into the work array workArr=( $(grep '[P,p]'ath $profilepath/profiles.ini | sed -e 's/[P,p]ath=//' -e 's/\r//') ) # read each profile into the work array


# FinalArr is a processed list of profiles # FinalArr is a processed list of profiles
# they are formated to abs paths since some are rel and some are abs # they are formated to abs paths since some are rel and some are abs
Expand Down Expand Up @@ -73,8 +73,8 @@ do_conkeror() {
} }


do_heftig-aurora() { do_heftig-aurora() {
prepath=$HOME/.mozilla/aurora prepath=$HOME/.mozilla/aurora
do_xulbased do_xulbased
} }


do_thunderbird() { do_thunderbird() {
Expand Down

0 comments on commit 51049bc

Please sign in to comment.