aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fgit/fgit-install.sh2
-rw-r--r--src/fgit/fgit-uninstall.sh2
-rw-r--r--src/firejail/main.c6
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
6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp 6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
7git clone --depth=1 https://www.github.com/netblue30/firejail.git 7git clone --depth=1 https://www.github.com/netblue30/firejail.git
8cd firejail 8cd firejail
9./configure 9./configure --enable-git-install
10make 10make
11sudo make install-strip 11sudo make install-strip
12echo "**********************************************************************" 12echo "**********************************************************************"
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
6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp 6cd /tmp # by the time we start this, we should have a tmpfs mounted on top of /tmp
7git clone --depth=1 https://www.github.com/netblue30/firejail.git 7git clone --depth=1 https://www.github.com/netblue30/firejail.git
8cd firejail 8cd firejail
9./configure 9./configure --enable-git-install
10sudo make uninstall 10sudo make uninstall
11echo "**********************************************************************" 11echo "**********************************************************************"
12echo "Firejail mainline git version uninstalled from /usr/local" 12echo "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;