Removing /git-backup.cfg when generating symbolic link; Filename is already part of GIT_BACKUP_URL variable.

This commit is contained in:
logicbus 2024-03-11 22:28:35 -04:00
parent a5bfdfb55f
commit 8b97b623a9

View file

@ -32,7 +32,7 @@ function install_git_backup(){
chmod 755 "$GIT_BACKUP_INSTALLER"
sh "$GIT_BACKUP_INSTALLER" -i
echo -e "Info: Linking file..."
ln -sf "$GIT_BACKUP_URL"/git-backup.cfg "$HS_CONFIG_FOLDER"/git-backup.cfg
ln -sf "$GIT_BACKUP_URL" "$HS_CONFIG_FOLDER"/git-backup.cfg
if grep -q "include Helper-Script/git-backup" "$PRINTER_CFG" ; then
echo -e "Info: Git Backup configurations are already enabled in printer.cfg file..."
else
@ -88,4 +88,4 @@ function remove_git_backup(){
error_msg "Please select a correct choice!";;
esac
done
}
}