summaryrefslogtreecommitdiff
path: root/install.sh
blob: 8592818b57d14416dbb33ab4b76806eaacca1ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash

function exec() {
	if $verbose; then
		echo $@
	fi
	$@
}

function sudoexec() {
	if $verbose; then
		echo Executing $@ as sudo...
	fi
	sudo $@
}

function have_command() {
	echo -n Checking if you have command:\ 
	if command -v $1; then
		return 0
	else
		return 1
	fi
}