-
Notifications
You must be signed in to change notification settings - Fork 0
/
Refresh (macOS).command
executable file
·25 lines (23 loc) · 1.33 KB
/
Refresh (macOS).command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
set -e
REPOSITORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${REPOSITORY}"
if workspace version > /dev/null 2>&1 ; then
echo "Using system install of Workspace..."
workspace refresh $1 $2 $3 $4 •use‐version 0.44.0
elif ~/Library/Caches/ca.solideogloria.Workspace/Versions/0.44.0/workspace version > /dev/null 2>&1 ; then
echo "Using system cache of Workspace..."
~/Library/Caches/ca.solideogloria.Workspace/Versions/0.44.0/workspace refresh $1 $2 $3 $4 •use‐version 0.44.0
elif ~/.cache/ca.solideogloria.Workspace/Versions/0.44.0/workspace version > /dev/null 2>&1 ; then
echo "Using system cache of Workspace..."
~/.cache/ca.solideogloria.Workspace/Versions/0.44.0/workspace refresh $1 $2 $3 $4 •use‐version 0.44.0
elif .build/SDG/Workspace/workspace version > /dev/null 2>&1 ; then
echo "Using repository cache of Workspace..."
.build/SDG/Workspace/workspace refresh $1 $2 $3 $4 •use‐version 0.44.0
else
echo "No cached build detected; fetching Workspace..."
export OVERRIDE_INSTALLATION_DIRECTORY=.build/SDG
curl -sL https://gist.github.com/SDGGiesbrecht/4d76ad2f2b9c7bf9072ca1da9815d7e2/raw/update.sh | bash -s Workspace "https://github.com/SDGGiesbrecht/Workspace" 0.44.0 "" workspace
.build/SDG/Workspace/workspace refresh $1 $2 $3 $4 •use‐version 0.44.0
fi