diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/fgit/fgit-install.sh | 2 | ||||
-rw-r--r-- | src/fgit/fgit-uninstall.sh | 2 | ||||
-rw-r--r-- | src/firejail/main.c | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/fgit/fgit-install.sh b/src/fgit/fgit-install.sh index 9e43559a1..1f710c688 100755 --- a/src/fgit/fgit-install.sh +++ b/src/fgit/fgit-install.sh | |||
@@ -6,7 +6,7 @@ set -e # exit immediately if one of the commands fails | |||
6 | cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp | 6 | cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp |
7 | git clone --depth=1 https://www.github.com/netblue30/firejail.git | 7 | git clone --depth=1 https://www.github.com/netblue30/firejail.git |
8 | cd firejail | 8 | cd firejail |
9 | ./configure | 9 | ./configure --enable-git-install |
10 | make | 10 | make |
11 | sudo make install-strip | 11 | sudo make install-strip |
12 | echo "**********************************************************************" | 12 | echo "**********************************************************************" |
diff --git a/src/fgit/fgit-uninstall.sh b/src/fgit/fgit-uninstall.sh index 9a370546d..bc7cc9563 100644 --- a/src/fgit/fgit-uninstall.sh +++ b/src/fgit/fgit-uninstall.sh | |||
@@ -6,7 +6,7 @@ set -e # exit immediately if one of the commands fails | |||
6 | cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp | 6 | cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp |
7 | git clone --depth=1 https://www.github.com/netblue30/firejail.git | 7 | git clone --depth=1 https://www.github.com/netblue30/firejail.git |
8 | cd firejail | 8 | cd firejail |
9 | ./configure | 9 | ./configure --enable-git-install |
10 | sudo make uninstall | 10 | sudo make uninstall |
11 | echo "**********************************************************************" | 11 | echo "**********************************************************************" |
12 | echo "Firejail mainline git version uninstalled from /usr/local" | 12 | echo "Firejail mainline git version uninstalled from /usr/local" |
diff --git a/src/firejail/main.c b/src/firejail/main.c index 0d4cf2595..b90e30cca 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -2143,6 +2143,12 @@ int main(int argc, char **argv) { | |||
2143 | return 1; | 2143 | return 1; |
2144 | } | 2144 | } |
2145 | } | 2145 | } |
2146 | else if (strcmp(argv[i], "--git-install") == 0 || | ||
2147 | strcmp(argv[i], "--git-uninstall") == 0) { | ||
2148 | fprintf(stderr, "This feature is not enabled in the current build\n"); | ||
2149 | exit(1); | ||
2150 | } | ||
2151 | |||
2146 | else if (strcmp(argv[i], "--") == 0) { | 2152 | else if (strcmp(argv[i], "--") == 0) { |
2147 | // double dash - positional params to follow | 2153 | // double dash - positional params to follow |
2148 | arg_doubledash = 1; | 2154 | arg_doubledash = 1; |