fix: Error when nothing is entered

This commit is contained in:
Sayantan Santra 2024-02-08 13:39:16 -06:00
parent b96561e6a4
commit 10bb17709e
Signed by: SinTan1729
GPG Key ID: EB3E68BFBA25C85F
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
if [ "$1" = "--delete" ]; then
read -p "Warning: Deleting instead of trashing. Continue? [y/N]: " resp
if [ $resp != "y" ] && [ $resp != "Y" ]; then
if [ "$resp" != "y" ] && [ "$resp" != "Y" ]; then
exit
fi
d=1