From 1cf8c16a9dd56bd3e2d4af806bfe671fcab1ff42 Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 27 Jan 2023 21:39:49 -0600 Subject: use trash and not rm in the job tools --- .local/bin/jobconsider | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/jobconsider b/.local/bin/jobconsider index 84aea74..155fcdf 100755 --- a/.local/bin/jobconsider +++ b/.local/bin/jobconsider @@ -4,7 +4,7 @@ #Axioms: JOBDIR -#Dependencies: joblook +#Dependencies: joblook https://packages.debian.org/trash-cli numofjobs=1 @@ -19,7 +19,7 @@ then mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob" .txt)"/"$(basename "$consideringjob")" elif [ "$Choice" = 'n' ] then - rm "$consideringjob" + trash "$consideringjob" fi fi @@ -33,7 +33,7 @@ do mv -v "$consideringjob" /home/"$USER"/Documents/Jobs/Applying/"$(basename "$consideringjob" .txt)"/"$(basename "$consideringjob")" elif [ "$Choice" = 'n' ] then - rm "$consideringjob" + trash "$consideringjob" fi consideringjob="$(find /home/"$USER"/Documents/Jobs/Considering -maxdepth 1 -type f | shuf | head -1)" numofjobs=$numofjobs+1 -- cgit v1.2.3