summaryrefslogtreecommitdiffstats
path: root/ship/lib
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-14 10:31:01 +0100
committertv <tv@nomic.retiolum>2013-11-14 10:31:01 +0100
commitb536f99e6f1790df174879cc82045d71db42a099 (patch)
tree700a6d709b6f8f3923ebdec1ac65bdbac906f89c /ship/lib
parent9e12def06b7775dbfcae28b17ce3ba96ba08c0d1 (diff)
ship core: homogenize logging
Diffstat (limited to 'ship/lib')
-rw-r--r--ship/lib/core8
1 files changed, 4 insertions, 4 deletions
diff --git a/ship/lib/core b/ship/lib/core
index d1a7333e..5df146a1 100644
--- a/ship/lib/core
+++ b/ship/lib/core
@@ -1,8 +1,8 @@
# logging
-msg() { printf "$@\n" >&2 ;}
-info() { msg "** $@" ;}
-error() { msg "!! $@" ;}
-die() { error "$@" ;exit 1;}
+msg() { echo "$*" >&2; }
+info() { msg "** $*"; }
+error() { msg "!! $*"; }
+die() { error "$*"; exit 1; }
exists(){ type "$1" >/dev/null 2>/dev/null; }
is_root(){
test $(id -u) -eq 0