We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2ba65f commit 240fa06Copy full SHA for 240fa06
utils/install.sh
@@ -11,8 +11,10 @@
11
APPLE_SERVICES="${HOME}/Library/Services"
12
13
# Detects which macOS version.
14
-OS_VERS="$(sw_vers -buildVersion)"
15
-if [[ "$OS_VERS" > 16 ]]; then
+SW_VERS=$(sw_vers -buildVersion)
+OS_VERS=$(sed -E -e 's/([0-9]{2}).*/\1/' <<< "$SW_VERS")
16
+
17
+if [[ "$OS_VERS" -ge 14 ]]; then
18
# Copies files into the Services directory.
19
cp -r ../scripts/iCloud\ No\ Sync.workflow "${APPLE_SERVICES}"
20
cp -r ../scripts/iCloud\ Sync.workflow "${APPLE_SERVICES}"
0 commit comments