diff --git a/scripts/remove b/scripts/remove index 16a8c42..6d32b18 100644 --- a/scripts/remove +++ b/scripts/remove @@ -4,7 +4,7 @@ final_path=/var/www/noalyss sudo rm -rf $final_path -for i in $(psql -l | grep "\" | awk '{print $1}') +for i in $(sudo "su -c 'psql -l | grep \"\\" | awk \'{print $1}\''") do sudo "su postgres -c \"dropdb $i\"" done