summaryrefslogtreecommitdiff
path: root/backend/modules/frontend
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-17 05:07:10 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-17 05:07:10 +0100
commit00286a5db286e21a766b6af057052dc5d17561ad (patch)
tree7232dadf6dc3570705c3104fe0c000f480c7a0ee /backend/modules/frontend
downloadacritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip
acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz
Initial commit
Diffstat (limited to 'backend/modules/frontend')
-rw-r--r--backend/modules/frontend21
1 files changed, 21 insertions, 0 deletions
diff --git a/backend/modules/frontend b/backend/modules/frontend
new file mode 100644
index 0000000..ffa2d28
--- /dev/null
+++ b/backend/modules/frontend
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+function send()
+{
+ command="$1"
+ shift
+ echo "<acritoxinstaller $command> $@"
+}
+
+function send_error()
+{
+ if [ "$#" -gt 1 ]; then
+ send error "$@" >&2
+ elif [ "$#" -eq 1 ]; then
+ send error "$1" "$(tr -d '\n')" >&2
+ else
+ send error 255 unknown >&2
+ fi
+ return 1
+}
+