We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 173044e commit fc94969Copy full SHA for fc94969
1 file changed
restore.sh
@@ -491,7 +491,7 @@ set_tool_paths() {
491
492
elif [[ $OSTYPE == "darwin"* ]]; then
493
platform="macos"
494
- platform_ver="$(sysctl -n hw.model) - ${1:-$(sw_vers -productVersion)}"
+ platform_ver="${1:-$(sw_vers -productVersion)}"
495
IFS='.' read -r mac_majver mac_minver mac_patch <<< "$platform_ver"
496
dir="../bin/macos"
497
@@ -525,7 +525,7 @@ set_tool_paths() {
525
26 ) mac_name="Tahoe";;
526
esac
527
if [[ -n $mac_name ]]; then
528
- platform_ver="$mac_name $platform_ver"
+ platform_ver="$(sysctl -n hw.model) - $mac_name $platform_ver"
529
fi
530
if [[ $(xcode-select -p 1>/dev/null; echo $?) != 0 ]]; then
531
local error_msg="* You need to install Xcode Command Line Tools with this command: xcode-select --install"
0 commit comments