Don't delete repository when uninstalling

This commit is contained in:
Yorick Barbanneau 2020-11-06 18:14:13 +01:00
parent 77d78841e3
commit 31a79b6238

View file

@ -252,7 +252,7 @@ process_files () {
dest="$2"
source="${repository}/$1"
printf "Process files from directory %s:\n" "$source"
printf "\nProcess files from directory %s:\n" "$source"
[ ! -d "$source" ] && { error " -> source is not a directory"; return; }
[ ! -d "$dest" ] && { error " -> destination is not a directory"; return; }
@ -466,7 +466,6 @@ if [ $install -eq 0 ]
then
printf "\nRemove files for complete uninstall\n"
rm "$cache_file"
rm -rf "$repository"
fi
exit 0