Added a tmbless utility

Added a utility to bless a snapshot directory
This commit is contained in:
Lee Ockert
2022-07-27 11:06:40 -04:00
parent a13fa65b17
commit a577ae5199
3 changed files with 190 additions and 2 deletions

View File

@ -141,7 +141,7 @@ Preparing to run the following commands:\n\
"${SIMONSAYS}" "${UUID}" "${BACKUPPATH}" \
"${SIMONSAYS}" "${BACKUPPATH}"
if [ ! "$(basename "${BACKUPPATH}")" -eq "$(scutil --get ComputerName)"]; then
if [ ! "$(basename "${BACKUPPATH}")" == "$(scutil --get ComputerName)" ]; then
printf "#############################################################################\n"
printf "## W A R N I N G W A R N I N G W A R N I N G ##\n"
printf "#############################################################################\n"
@ -155,7 +155,7 @@ if [ ! "$(basename "${BACKUPPATH}")" -eq "$(scutil --get ComputerName)"]; then
printf "Only proceed if you are very certain of what you're doing!\n"
printf "Even if successful, the Time Machine restore UI will be adversely affected.\n"
else
printf "Does everything look right?\n\n"
printf "Does everything look right?\n"
fi