pentoo-overlay/app-exploits/exploitdb/files/disable-update.patch

17 lines
630 B
Diff

diff -ur a/searchsploit b/searchsploit
--- a/searchsploit 2019-09-11 13:58:00.879499000 +0300
+++ b/searchsploit 2019-09-11 14:10:57.883479546 +0300
@@ -109,6 +109,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