Bash script:
#!/bin/bash
set -x
parent_folder=$(dirname $PWD)
// read from project-list file and assign to array
mapfile -t arr <project-list.txt
for i in "${arr[@]}"; do
cd "$parent_folder/$i"
done
Issue: bash: cd: $'/d/workspace/node/notification-service\r': Not a directory
. There is \r
that is getting added. How to prevent this?