5 username
=$
(echo -e "$multi" | sed -n 's/username: //p')
6 url
=$
(echo -e "$multi" | sed -n -e 's/url: //p')
7 urlstrip
=$
(echo "$url" | sed -re "s,([^/]*//)?([^@]*@)?(www\.)?([^:/]*).*,\4,")
8 if [[ -n "$url" && -n "$username" ]]; then
9 newfile
="$urlstrip/$username.gpg"
10 if [[ -f "$newfile" ]]; then
11 echo "$newfile" already exists... skipping
"$p"
14 git
mv "$p.gpg" "$newfile"