mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-03 21:28:01 +03:00
b1a4d73ece
I ran into this when i tried running it in a non-POSIX shell. Nothing happened. Bash, when asked to run a script without a shebang will interpret it itself, while other shells behave differently (and I think this even depends on the OS – BSD (like macOS) & Linux handle `execvp` differently). This adds a shebang and some “strict” settings.
14 lines
451 B
Bash
Executable File
14 lines
451 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
echo "This script downloads the latest Unison Local UI release"
|
|
echo "and puts it in the correct spot next to the unison"
|
|
echo "executable built by stack."
|
|
echo ""
|
|
|
|
stack build
|
|
curl -L https://github.com/unisonweb/unison-local-ui/releases/download/latest/unisonLocal.zip --output unisonLocal.zip
|
|
parent_dir="$(dirname -- $(stack exec which unison))"
|
|
mkdir -p "$parent_dir/ui"
|
|
unzip -q -o unisonLocal.zip -d "$parent_dir/ui"
|