desktop-environment/docker/scripts/pre-clean.sh
Jackson Delahunt fff379c028 path-fix
2019-02-24 18:18:39 +11:00

10 lines
316 B
Bash
Executable file

REPO_ROOT=$(dirname $(realpath $0))/../..
# Check for changes to vcsh repositories before removing home volume
$REPO_ROOT/docker/scripts/exec.sh "vcsh status | grep -qE \"^ M \" -"
DOTFILES_CHANGED=$?
if [ "$DOTFILES_CHANGED" = "0" ]; then
echo "Resolve uncommitted dotfiles changes before recycle!"
exit 1
fi