pentoo-overlay/app-exploits/exploitdb/files/disable-update2.patch
2020-07-18 12:52:09 +08:00

16 lines
595 B
Diff

--- a/searchsploit.orig 2020-07-18 12:46:59.287018894 +0800
+++ b/searchsploit 2020-07-18 12:48:36.286025200 +0800
@@ -135,6 +135,13 @@
## Update database check
function update() {
+ echo -e "\nWarning: the build-in update (-u) is disabled in Pentoo \n "
+ echo -e "Instead, you should update it using one of the following commands:"
+ echo -e " emerge -1 app-exploits/exploitdb"
+ echo -e " smart-live-rebuild\n"
+ #something went wrong
+ exit 1
+
arraylength="${#files_array[@]}"
for (( i=0; i<${arraylength}; i++ )); do
## Check to see if we already have the value