aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/update_src.sh
blob: 77f7be16eccc7b5855971c8d2d7e0ea1b8e0b690 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Purpose: Fetch, compile, and install firejail from GitHub source. Package-manager agnostic.

if [ $EUID != 0 ]; then
	sudo "$0" "$@"
	exit $?
fi

git clone https://www.github.com/netblue30/firejail.git
cd firejail
./configure --prefix=/usr
make
make install-strip
echo "Firejail was updated!"
sleep 3
cd ..
rm -rf firejail