preinstall
sha256:1ccd31d41a3e3c90917cc0b460edeafcc615c6e74fa2ed104b2f6673ab0ec0b8
Merge feat/companion-phase-7-distribution: production macOS…
Human
27 days ago
| 1 | #!/bin/bash |
| 2 | set -euo pipefail |
| 3 | |
| 4 | installed_plist="/Applications/Knowtation.app/Contents/Info.plist" |
| 5 | if [[ ! -f "$installed_plist" ]]; then exit 0; fi |
| 6 | installed_build="$(/usr/libexec/PlistBuddy -c 'Print :CFBundleVersion' "$installed_plist" 2>/dev/null || true)" |
| 7 | if [[ "$installed_build" =~ ^[0-9]+$ ]] && (( installed_build > 100 )); then |
| 8 | echo "Knowtation build $installed_build is newer than build 100; rollback is rejected." >&2 |
| 9 | exit 1 |
| 10 | fi |
File History
1 commit
sha256:1ccd31d41a3e3c90917cc0b460edeafcc615c6e74fa2ed104b2f6673ab0ec0b8
Merge feat/companion-phase-7-distribution: production macOS…
Human
27 days ago