diff options
author | 2017-01-23 19:36:58 -0600 | |
---|---|---|
committer | 2017-01-23 19:36:58 -0600 | |
commit | 4d7dcc4b814841ad340582f88bd35bff8f9310ce (patch) | |
tree | e9c51b1c985f837b6e97ae9fe96283297a7f9ff8 /contrib/update_src.sh | |
parent | added update scripts (diff) | |
download | firejail-4d7dcc4b814841ad340582f88bd35bff8f9310ce.tar.gz firejail-4d7dcc4b814841ad340582f88bd35bff8f9310ce.tar.zst firejail-4d7dcc4b814841ad340582f88bd35bff8f9310ce.zip |
changes for review upstream
Diffstat (limited to 'contrib/update_src.sh')
-rwxr-xr-x | contrib/update_src.sh | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/contrib/update_src.sh b/contrib/update_src.sh index 77f7be16e..a61244c49 100755 --- a/contrib/update_src.sh +++ b/contrib/update_src.sh | |||
@@ -1,17 +1,11 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # Purpose: Fetch, compile, and install firejail from GitHub source. Package-manager agnostic. | 2 | # Purpose: Fetch, compile, and install firejail from GitHub source. Package-manager agnostic. |
3 | 3 | set -e | |
4 | if [ $EUID != 0 ]; then | 4 | git clone --depth=1 https://www.github.com/netblue30/firejail.git |
5 | sudo "$0" "$@" | ||
6 | exit $? | ||
7 | fi | ||
8 | |||
9 | git clone https://www.github.com/netblue30/firejail.git | ||
10 | cd firejail | 5 | cd firejail |
11 | ./configure --prefix=/usr | 6 | ./configure |
12 | make | 7 | make |
13 | make install-strip | 8 | sudo make install-strip |
14 | echo "Firejail was updated!" | 9 | echo "Firejail was updated!" |
15 | sleep 3 | ||
16 | cd .. | 10 | cd .. |
17 | rm -rf firejail | 11 | rm -rf firejail |