Skip to content

Commit

Permalink
try to make echo usage as posix compliant as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
cartercanedy committed Sep 11, 2024
1 parent bc2ac3f commit b093f12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/sh -e

# Make sure that echo is posix compliant
function echo() {
if [ ! "$BASH_VERSION" = "" ]; then
/usr/bin/env echo -e "$@"
else
/usr/bin/env echo "$@"
fi
}

RC='\033[0m'
RED='\033[31m'
YELLOW='\033[33m'
Expand Down

0 comments on commit b093f12

Please sign in to comment.