|
Lines 322-328
Link Here
|
| 322 |
# check that the LAST DIRECTORY in the full path is unique |
322 |
# check that the LAST DIRECTORY in the full path is unique |
| 323 |
unique_count=$(echo ${DIRArr[@]##*/} | |
323 |
unique_count=$(echo ${DIRArr[@]##*/} | |
| 324 |
sed 's/ /\n/g' | sort | uniq | wc -l) |
324 |
sed 's/ /\n/g' | sort | uniq | wc -l) |
| 325 |
if [[ ${#DIRArr[@]##*/} -eq $unique_count ]]; then |
325 |
if [[ ${#DIRArr[@]} -eq $unique_count ]]; then |
| 326 |
return # no problems so do nothing |
326 |
return # no problems so do nothing |
| 327 |
else |
327 |
else |
| 328 |
echo -e " ${RED}Error: ${NRM}${BLD}dup profile for ${GRN}$browser${NRM}${BLD} detected. See psd manpage, correct, and try again."${NRM} |
328 |
echo -e " ${RED}Error: ${NRM}${BLD}dup profile for ${GRN}$browser${NRM}${BLD} detected. See psd manpage, correct, and try again."${NRM} |