Newrm now also removes files in git repo

This commit is contained in:
z3rOR0ne 2022-07-20 07:56:59 -07:00
parent e84d757af4
commit 8dd57ff0a0

View file

@ -34,6 +34,11 @@ shift $(( $OPTIND - 1 ))
# BEGIN MAIN SCRIPT
# =================
if [ -d .git ] ; then
git rm "$@"
exit 0
fi
if [ ! -d $archivedir ] ; then
if [ ! -w $HOME ] ; then
echo "$0 failed: can't create $archivedir in $HOME " >&2