debug/print_info
- 228 bytes
- View raw
1#!/usr/bin/env bash
3set -o errexit
4set -o nounset
6# This allows you to call `-n` to print without a trailing newline
7if [[ "$#" = "2" && "$1" = "-n" ]]
8then
9 echo -ne "\033[34m$2\033[0m"
10else
11 echo -e "\033[34m$1\033[0m"
12fi