Proxmox VE Helper Scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
516 B

#!/bin/bash
# Copyright (c) 2021-2023 tteck
# Author: Jimi (JimiHFord)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
# Ensure script will function regardless of user's current working directory
# Get the directory of the script
script_dir="$(dirname "$(readlink -f "$0")")"
# Get project root directory
repo_dir="$(dirname "$(readlink -f "$script_dir")")"
find "$repo_dir" -type f -name "*.bak" -exec sh -c 'mv "$1" "${1%.bak}"' _ {} \;
echo "Undo operation completed. Backup files restored."