From 665692e48a4697d7aebe9b80f830867ff51b232e Mon Sep 17 00:00:00 2001 From: Sirisak Lueangsaksri <1087399+spywhere@users.noreply.github.com> Date: Sun, 7 Apr 2024 23:39:09 +0700 Subject: [PATCH] feat(packages): add time machine status app --- packages/timemachinestatus.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/timemachinestatus.sh diff --git a/packages/timemachinestatus.sh b/packages/timemachinestatus.sh new file mode 100644 index 0000000..9620540 --- /dev/null +++ b/packages/timemachinestatus.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +if + ! (command -v force_print >/dev/null 2>&1) || + ! (force_print 3 a b >/dev/null 2>&1) || + test "$(force_print 3 a b)" != "a b"; +then + printf "Please run this script through \"install.sh\" instead" + exit 1 +fi + +has_app 'TimeMachineStatus' + +profile -work +use_brew cask 'timemachinestatus'