We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f535de9 commit 6177dd4Copy full SHA for 6177dd4
install.sh
@@ -47,15 +47,15 @@ timestamp() {
47
}
48
49
info() {
50
- echo -e "$(timestamp) ${GREEN}INF${NC} $1"
+ printf "%s %bINF%b %s\n" "$(timestamp)" "${GREEN}" "${NC}" "$1"
51
52
53
warn() {
54
- echo -e "$(timestamp) ${YELLOW}WRN${NC} $1"
+ printf "%s %bWRN%b %s\n" "$(timestamp)" "${YELLOW}" "${NC}" "$1"
55
56
57
error() {
58
- echo -e "$(timestamp) ${RED}ERR${NC} $1"
+ printf "%s %bERR%b %s\n" "$(timestamp)" "${RED}" "${NC}" "$1"
59
exit 1
60
61
@@ -188,7 +188,9 @@ parse_args() {
188
usage
189
;;
190
*)
191
- error "Unknown option: $1\nRun '$0 --help' for usage"
+ printf "%s\n" "Unknown option: $1"
192
+ printf "%s\n" "Run '$0 --help' for usage"
193
+ exit 1
194
195
esac
196
done
0 commit comments