desktop-environment/docker/scripts/build-dotfiles.sh
Jackson Delahunt 2a32a915c6 exit-code
2023-10-24 16:33:45 +11:00

13 lines
418 B
Bash
Executable file

REPO_ROOT=$(dirname $(readlink -f $0))/../..
# Export desktop environment shell configuration
eval "$($REPO_ROOT/docker/scripts/environment.sh)"
# Set the cachebust file to rebuild from dotfiles onwards
DOTFILES_CACHEBUST=$(date +%s > $REPO_ROOT/.dotfiles-cachebust)
# Rebuild the desktop environment
$REPO_ROOT/docker/scripts/build.sh
# Store build exit code
echo "exit-code:$?" >> $REPO_ROOT/.dotfiles-cachebust