desktop-environment/docker/scripts/pre-clean.sh
Jackson Delahunt f0c5659bf8 readlink
2019-02-27 11:28:04 +11:00

10 lines
319 B
Bash
Executable file

REPO_ROOT=$(dirname $(readlink -f $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