summaryrefslogtreecommitdiff
path: root/backend/modules/frontend
blob: ffa2d28a06a3a6046c5257537878ced40ad6f38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}