$'\r': command not found

1 minute read

April 20, 2016

I am working on a script to deploy a CI app to the server, now that it is finally in git. And my console was outputting the following:

scripts/deploy.sh: line 2: $'\r': command not found
scripts/deploy.sh: line 10: $'\r': command not found
scripts/deploy.sh: line 15: $'\r': command not found
scripts/deploy.sh: line 17: syntax error near unexpected token `$'{\r''
'cripts/deploy.sh: line 17: `show_help() {

This StackOverflow answer suggested using dos2unix on the script. I didn't have it installed on my vm so I needed to run:

apt-get install dos2unix


dos2unix deploy.sh

Which worked like a charm!

Looking for more?

WIP: Laracon 2018

Laracon was this past week and it was amazing! Last night I tweeted this out:

I don't know where to begin, or how to fit everything I'm feeling into a tweet, but...

Jul 27, 2018

2 minute read

My Work Spotify Playlists

Here's a list of playlists I rotate through when I need get down to business.

  • Deep Work created by Chris Gmyr
  • Deep House Relax created by Spotify
  • mint...

May 14, 2018

1 minute read