Add functionality to disable docker stacks with zsh update function

This commit is contained in:
Marko Korhonen 2022-04-10 13:28:26 +03:00
parent 65f8f5f1dc
commit 175d906fe1
2 changed files with 8 additions and 3 deletions

View file

@ -162,9 +162,13 @@ update() {
docker-update() {
for dir in $HOME/git/dotfiles/docker/*; do
cd $dir
dct pull
dct up -d
cd ..
if [[ -f "DISABLED" ]]; then
echo "$dir stack is disabled, skipping..."
else
dct pull
dct up -d
cd ..
fi
done
}