Skip to content

Commit fc94969

Browse files
committed
Update restore.sh
1 parent 173044e commit fc94969

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

restore.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ set_tool_paths() {
491491

492492
elif [[ $OSTYPE == "darwin"* ]]; then
493493
platform="macos"
494-
platform_ver="$(sysctl -n hw.model) - ${1:-$(sw_vers -productVersion)}"
494+
platform_ver="${1:-$(sw_vers -productVersion)}"
495495
IFS='.' read -r mac_majver mac_minver mac_patch <<< "$platform_ver"
496496
dir="../bin/macos"
497497

@@ -525,7 +525,7 @@ set_tool_paths() {
525525
26 ) mac_name="Tahoe";;
526526
esac
527527
if [[ -n $mac_name ]]; then
528-
platform_ver="$mac_name $platform_ver"
528+
platform_ver="$(sysctl -n hw.model) - $mac_name $platform_ver"
529529
fi
530530
if [[ $(xcode-select -p 1>/dev/null; echo $?) != 0 ]]; then
531531
local error_msg="* You need to install Xcode Command Line Tools with this command: xcode-select --install"

0 commit comments

Comments
 (0)