summaryrefslogtreecommitdiff
path: root/compiz-fusion-git-functions
blob: ffa8cc739387e8091f973698886680c34c6bd821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Compiz Fusion Git Retrieval/Build Script Functions

function die() {
	echo -e ${1}
	exit 1
}

function remove_unwanted_packages() {
	packages=""

	for x in "$@"
	do
		# Remove packages with ! infront
		if [[ "${x}" = "${x#!}" ]]; then
			packages="${packages} ${x}"
		fi
	done

	echo $packages # Return the package names
}