pikman-update-manager/data/modify_repo.sh
Ward from fusion-voyager-3 51250c37ad Add Repo remove
2024-09-22 22:06:45 +03:00

15 lines
351 B
Bash

#! /bin/bash
if [[ "$1" == "deb822_move" ]]
then
mv -vf "/tmp/"$2".sources" "/etc/apt/sources.list.d/"$2".sources"
elif [[ "$1" == "legacy_move" ]]
then
mv -vf "/tmp/"$2".list" "/etc/apt/sources.list.d/"$2".list"
elif [[ "$1" == "delete_deb822" ]]
then
rm -rvf $2
rm -rvf $3
elif [[ "$1" == "delete_legacy" ]]
then
rm -rvf $2
fi