summaryrefslogtreecommitdiff
path: root/backend/modules/frontend
blob: 8c6c87cfbfb1f610e56a9e375bacf443a3602bcb (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 "$@"
	elif [ "$#" -eq 1 ]; then
		send error "$1" "$(tr -d '\n')"
	else
		send error 255 unknown
	fi
	return 1
}