Files
linux-workspace/scripts/changes.sh
Martin Blazik 287a9a714c Automatic changes
Reload some script after changing git hash
2020-10-29 21:42:30 +01:00

18 lines
369 B
Bash
Executable File

#!/bin/bash
# process changes from last commit
set -u
VERSION_FILE=$WORKSPACE/var/version
last_version=$(cat $VERSION_FILE 2> /dev/null)
current_version=$(git rev-parse HEAD)
if [[ "$last_version" != "$current_version" ]]; then
echo "Git version changed. Running changing scripts"
$WORKSPACE/scripts/git-config.sh
echo "$current_version" > $VERSION_FILE
fi