dotfiles/.config/bash/tools/automated-deploy.bashrc
Andrei Jiroh Halili adcca67efc
Update automated-deploy to fix some syntax issues
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
2023-10-07 08:34:38 +08:00

10 lines
308 B
Bash

#!/usr/bin/env bash
for file in "${HOME}"/.config/bash/tools/*.bashrc; do
if [ "$file" == "${HOME}/.config/bash/tools/automated-deploy.bashrc" ]; then
[[ $DEBUG != "" ]] && echo "avoiding source loop, skipping $file"
else
[[ $DEBUG != "" ]] && echo "sourcing $file"
source "$file"
fi
done