aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-16 04:45:35 +0300
committerCem Keylan <cem@ckyln.com>2020-05-16 04:45:35 +0300
commit5deb47cfbb7bcd994bb7295637dc5e85187ce1cb (patch)
tree48c543ea4c484b2652be638e9fa4ebe10daa7d42
parentc14e862fca1c53620fd28465c6292bdcaadf22ab (diff)
downloadinit-5deb47cfbb7bcd994bb7295637dc5e85187ce1cb.tar.gz
rc.lib: simplify
-rw-r--r--rc.lib9
1 files changed, 2 insertions, 7 deletions
diff --git a/rc.lib b/rc.lib
index c95d55a..919883e 100644
--- a/rc.lib
+++ b/rc.lib
@@ -1,15 +1,10 @@
# rc.lib -- common functions for rc.boot and rc.shutdown
-# shellcheck disable=1090
-# Functions for rc.boot and rc.shutdown
-
-out() { printf '\033[1;36m-> \033[m\033[1m%s\033[m\n' "$@" ;}
-error() { printf '\033[1;31m!> ERROR: \033[m\033[1m%s\033[m\n' "$@" >&2 ;}
+out() { printf '\033[1;36m-> \033[39m%s\033[m\n' "$@" ;}
+err() { printf '\033[1;31m!> \033[39m%s\033[m\n' "$@" ;}
shell() {
error "Dropping to shell, type 'exit' to continue the boot process."
sh -l
}
-
-}