summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-27 21:39:39 -0600
committermsglm <msglm@techchud.xyz>2023-01-27 21:39:39 -0600
commit7af1e7332cac8e4589817ddb6b29c222618d607a (patch)
tree80ceac99bb0f3957ca31a107f5212f7f75d0533f
parent358deea32e717a279e204eb613f82b6291816462 (diff)
downloadmsglm-dotfiles-7af1e7332cac8e4589817ddb6b29c222618d607a.tar.gz
msglm-dotfiles-7af1e7332cac8e4589817ddb6b29c222618d607a.tar.bz2
msglm-dotfiles-7af1e7332cac8e4589817ddb6b29c222618d607a.zip
use trash and not rm in the job tools
-rwxr-xr-x.local/bin/joblook6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/joblook b/.local/bin/joblook
index a17dd2d..904bcd5 100755
--- a/.local/bin/joblook
+++ b/.local/bin/joblook
@@ -4,7 +4,7 @@
#Axioms: JOBDIR
-#Dependencies: https://git.techchud.xyz/indeedwatcher
+#Dependencies: https://git.techchud.xyz/indeedwatcher https://packages.debian.org/trash-cli
numofjobs=1
@@ -18,7 +18,7 @@ then
mv -v "$potentialjob" /home/$USER/Documents/Jobs/Considering/
elif [ "$Choice" = 'n' ]
then
- rm "$potentialjob"
+ trash "$potentialjob"
fi
fi
@@ -31,7 +31,7 @@ do
mv -v "$potentialjob" /home/$USER/Documents/Jobs/Considering/
elif [ "$Choice" = 'n' ]
then
- rm "$potentialjob"
+ trash "$potentialjob"
fi
potentialjob="$(find /home/"$USER"/Documents/Jobs/Potential -maxdepth 1 -type f | shuf | head -1)"
numofjobs=$numofjobs+1