Browse Source

inputrc restore

main
pvincent 2 weeks ago
parent
commit
f70bdb38bf
  1. 2
      lib/uninstall.bash

2
lib/uninstall.bash

@ -9,8 +9,8 @@ BACKUP_SUFFIX='.ORIGINAL'
function restore { function restore {
local path="$1" local path="$1"
local backup="${path}${BACKUP_SUFFIX}" local backup="${path}${BACKUP_SUFFIX}"
sudo rm "$path"
if [[ -f "$backup" ]]; then if [[ -f "$backup" ]]; then
sudo rm "$path"
sudo mv "$backup" "$path" sudo mv "$backup" "$path"
echo "$path restored!" echo "$path restored!"
fi fi

Loading…
Cancel
Save