mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-07 01:14:54 -06:00
use LATE_FAIL_EXIT properly in source state script
This commit is contained in:
@@ -60,7 +60,7 @@ install_doppler() {
|
|||||||
echo "https://docs.doppler.com/docs/cli#installation"
|
echo "https://docs.doppler.com/docs/cli#installation"
|
||||||
|
|
||||||
DOPPLER_UNAVAILABLE=true
|
DOPPLER_UNAVAILABLE=true
|
||||||
INSTALLATION_FAILED=true
|
LATE_FAIL_EXIT=true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,3 +85,8 @@ install_age
|
|||||||
if [ $DOPPLER_UNAVAILABLE = false ]; then
|
if [ $DOPPLER_UNAVAILABLE = false ]; then
|
||||||
install_doppler
|
install_doppler
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $LATE_FAIL_EXIT = true ]; then
|
||||||
|
echo "chezmoi: Some installation(s) failed. Please fix the issues detailed before trying again."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user