Clarified UI messages in tmimport.sh
Previously used the language "attributes are now" to describe the extended attributes matching a backup drive to a computer. However, that is both overly erudite language and completely meaningless to the average user. Replaced it with the more meaningful language: "This backup drive is currently matched to the following computer:" and "This backup drive has been matched to the current computer:", and omitted the names of the extended attributes.
This commit is contained in:
16
tmimport.sh
16
tmimport.sh
@ -125,10 +125,10 @@ Computer Model: %s\n\
|
|||||||
Host UUID: %s\n\
|
Host UUID: %s\n\
|
||||||
MAC Address: %s\n\n" "${SPECIFIED}" "${BACKUPPATH}" "${MODEL}" "${UUID}" "${MAC}"
|
MAC Address: %s\n\n" "${SPECIFIED}" "${BACKUPPATH}" "${MODEL}" "${UUID}" "${MAC}"
|
||||||
|
|
||||||
printf "Attributes are now:\n"
|
printf "This backup drive is currently matched to the following computer:\n"
|
||||||
printf " %s\t\t\t%s\n" "com.apple.backupd.ModelID" "$(xattr -p 'com.apple.backupd.ModelID' "${BACKUPPATH}")"
|
printf " ModelID: %s\n" "$(xattr -p 'com.apple.backupd.ModelID' "${BACKUPPATH}")"
|
||||||
printf " %s\t%s\n" "com.apple.backupd.BackupMachineAddress" "$(xattr -p 'com.apple.backupd.BackupMachineAddress' "${BACKUPPATH}")"
|
printf " MAC Address: %s\n" "$(xattr -p 'com.apple.backupd.BackupMachineAddress' "${BACKUPPATH}")"
|
||||||
printf " %s\t\t\t%s\n\n" "com.apple.backupd.HostUUID" "$(xattr -p 'com.apple.backupd.HostUUID' "${BACKUPPATH}")"
|
printf " Host UUID: %s\n\n" "$(xattr -p 'com.apple.backupd.HostUUID' "${BACKUPPATH}")"
|
||||||
|
|
||||||
printf "\
|
printf "\
|
||||||
Preparing to run the following commands:\n\
|
Preparing to run the following commands:\n\
|
||||||
@ -150,10 +150,10 @@ select response in "Apply Time Machine Magic" "ABORT ABORT ABORT!"; do
|
|||||||
"${SIMONSAYS}" xattr -w 'com.apple.backupd.HostUUID' "${UUID}" "${BACKUPPATH}"
|
"${SIMONSAYS}" xattr -w 'com.apple.backupd.HostUUID' "${UUID}" "${BACKUPPATH}"
|
||||||
"${SIMONSAYS}" tmutil inheritbackup "${BACKUPPATH}"
|
"${SIMONSAYS}" tmutil inheritbackup "${BACKUPPATH}"
|
||||||
printf "\nOperation completed.\n\n"
|
printf "\nOperation completed.\n\n"
|
||||||
printf "Attributes are now:\n"
|
printf "This backup drive has been matched to the current computer:\n"
|
||||||
printf " %s\t\t\t%s\n" "com.apple.backupd.ModelID" "$(xattr -p 'com.apple.backupd.ModelID' "${BACKUPPATH}")"
|
printf " ModelID: %s\n" "$(xattr -p 'com.apple.backupd.ModelID' "${BACKUPPATH}")"
|
||||||
printf " %s\t%s\n" "com.apple.backupd.BackupMachineAddress" "$(xattr -p 'com.apple.backupd.BackupMachineAddress' "${BACKUPPATH}")"
|
printf " MAC Address: %s\n" "$(xattr -p 'com.apple.backupd.BackupMachineAddress' "${BACKUPPATH}")"
|
||||||
printf " %s\t\t\t%s\n\n" "com.apple.backupd.HostUUID" "$(xattr -p 'com.apple.backupd.HostUUID' "${BACKUPPATH}")"
|
printf " Host UUID: %s\n\n" "$(xattr -p 'com.apple.backupd.HostUUID' "${BACKUPPATH}")"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
printf "\nOperation aborted. No action has been taken.\n\n"
|
printf "\nOperation aborted. No action has been taken.\n\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user