forked from Shinonome/dots-hyprland
fix: uninstall.sh is now working properly.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*/*.tar.*
|
||||
/*/pkg/
|
||||
/*/src/
|
||||
user-config.yaml
|
||||
user_data.yaml
|
||||
@@ -1,10 +1,12 @@
|
||||
# This script is meant to be sourced.
|
||||
# It's not for directly running.
|
||||
|
||||
user_config="${REPO_ROOT}/sdata/dist-fedora/user-config.yaml"
|
||||
yq -r '.dnf.transaction_ids[]? | reverse' "$user_config" | while read -r tx_id; do
|
||||
user_data="${REPO_ROOT}/sdata/dist-fedora/user_data.yaml"
|
||||
yq eval '.dnf.transaction_ids // [] | reverse[]' "$user_data" | while read -r tx_id; do
|
||||
echo -e "\n========================================"
|
||||
echo "Rolling back DNF Transactions ID:$tx_id"
|
||||
echo "Rolling back DNF Transactions ID: $tx_id"
|
||||
echo "========================================"
|
||||
v sudo dnf history undo -y "$tx_id"
|
||||
dnf history info "$tx_id"
|
||||
echo -e "\nProceed to undo this transaction? "
|
||||
v sudo dnf history undo -y "$tx_id" </dev/tty
|
||||
done
|
||||
Reference in New Issue
Block a user