lib.sh: Change echo to plain

pull/17/head
Jesus Alvarez 11 years ago
parent 3f356a3b9c
commit 56eb60805b
  1. 8
      lib.sh

@ -60,18 +60,18 @@ send_email() {
debug() { debug() {
# $1: The message to print. # $1: The message to print.
if [[ $DEBUG -eq 1 ]]; then if [[ $DEBUG -eq 1 ]]; then
echo "$1" plain "DEBUG: $1"
fi fi
} }
run_cmd() { run_cmd() {
# $1: The command to run # $1: The command to run
if [[ $DRY_RUN -eq 1 ]]; then if [[ $DRY_RUN -eq 1 ]]; then
echo "$1" plain "$1"
else else
echo "Running command: $1" plain "Running command: $1"
eval "$1" eval "$1"
echo "Command returned: $?" plain "Command returned: $?"
fi fi
} }

Loading…
Cancel
Save