summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsglm <msglm@techchud.xyz>2023-01-27 21:39:49 -0600
committermsglm <msglm@techchud.xyz>2023-01-27 21:39:49 -0600
commit1cf8c16a9dd56bd3e2d4af806bfe671fcab1ff42 (patch)
treec64196f36dba3911117e00aeb04104ea49b858c4
parent7af1e7332cac8e4589817ddb6b29c222618d607a (diff)
downloadmsglm-dotfiles-1cf8c16a9dd56bd3e2d4af806bfe671fcab1ff42.tar.gz
msglm-dotfiles-1cf8c16a9dd56bd3e2d4af806bfe671fcab1ff42.tar.bz2
msglm-dotfiles-1cf8c16a9dd56bd3e2d4af806bfe671fcab1ff42.zip
use trash and not rm in the job tools
-rwxr-xr-x.local/bin/jobconsider6
1 files changed, 3 insertions, 3 deletions
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