Closed geospatialmapmashup closed 6 years ago
Perhaps it’s a Windows vs. Linux line-ending issue. Can your editor change between those two? If so, try editing the script and saving it with Windows line endings.
I haven’t tested this under anything but various Linux VMs so I don’t know how it’ll work with Windows
On Tue, Nov 28, 2017 at 1:37 PM geospatialmapmashup < notifications@github.com> wrote:
geodata@GEO02:/mnt/l/process_faa_nasr_data$ ./create_databases.sh 28DaySubscription_Effective_2017-12-07.zip ./create_databases.sh: line 4: $'\r': command not found
I did a git pull to grab the latest and now I am getting this weird issue. I opened create_databases.sh and I don't see that line or 'r' I am running Bash for Windows Ubuntu on Windows 10 Pro. I've tried running from Bash shell or command prompt bash -c "cd /mnt/l/process_faa_nasr_data && ./create_databases.sh 28DaySubscription_Effective_2017-12-07.zip" ./create_databases.sh: line 4: $'\r': command not found
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jlmcgraw/processFaaData/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ADSE3rUyV6liSntUBohxa_49P3PZU3LXks5s7FMGgaJpZM4Qtt1N .
I did a websearch and looks like a common problem with WSL -Windows Subsystem for Linux (Bash for Windows). I run many tools as part of Bash for windows and never experienced a problem. I guess it's time to fire up my Hyper-V Ubuntu VM to resolve this. I see that ATOM text editor has a Line Ending Selector Package.
geodata@GEO02:/mnt/l/process_faa_nasr_data$ ./create_databases.sh 28DaySubscription_Effective_2017-12-07.zip ./create_databases.sh: line 4: $'\r': command not found
I did a git pull to grab the latest and now I am getting this weird issue. I opened create_databases.sh and I don't see that line or 'r' I am running Bash for Windows Ubuntu on Windows 10 Pro. I've tried running from Bash shell or command prompt bash -c "cd /mnt/l/process_faa_nasr_data && ./create_databases.sh 28DaySubscription_Effective_2017-12-07.zip" ./create_databases.sh: line 4: $'\r': command not found