mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
* build multi-arch s9pks * remove images incrementally * wip * prevent rebuild * fix sdk makefile * fix hanging on uninstall * fix build * fix build * fix build * fix build (for real this time) * fix git hash computation
13 lines
361 B
Bash
Executable File
13 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$GIT_BRANCH_AS_HASH" != 1 ]; then
|
|
GIT_HASH="$(git rev-parse HEAD)$(if ! git diff-index --quiet HEAD --; then echo '-modified'; fi)"
|
|
else
|
|
GIT_HASH="@$(git rev-parse --abbrev-ref HEAD)"
|
|
fi
|
|
|
|
if ! [ -f ./GIT_HASH.txt ] || [ "$(cat ./GIT_HASH.txt)" != "$GIT_HASH" ]; then
|
|
echo -n "$GIT_HASH" > ./GIT_HASH.txt
|
|
fi
|
|
|
|
echo -n ./GIT_HASH.txt |