Fix persist prop deletion

This commit is contained in:
Chris Renshaw
2025-06-08 00:38:26 -03:00
committed by GitHub
parent 17db1e7177
commit ec374a7d9b

View File

@@ -16,9 +16,9 @@ persistprop() {
if ! grep -q "$NAME" $MODPATH/uninstall.sh 2>/dev/null; then if ! grep -q "$NAME" $MODPATH/uninstall.sh 2>/dev/null; then
if [ "$CURVALUE" ]; then if [ "$CURVALUE" ]; then
[ "$NEWVALUE" = "$CURVALUE" ] || echo "resetprop -n -p \"$NAME\" \"$CURVALUE\"" >> $MODPATH/uninstall.sh [ "$NEWVALUE" = "$CURVALUE" ] || echo "resetprop -n -p \"$NAME\" \"$CURVALUE\"" >> $MODPATH/uninstall.sh
else else
echo "resetprop --delete \"$NAME\"" >> $MODPATH/uninstall.sh echo "resetprop -p --delete \"$NAME\"" >> $MODPATH/uninstall.sh
fi fi
fi fi
resetprop -n -p "$NAME" "$NEWVALUE" resetprop -n -p "$NAME" "$NEWVALUE"