1
0
Fork 0

bashrc: warn when a file cannot be sourced because it does not exist

This commit is contained in:
Pratham Patel 2024-03-19 16:31:51 +05:30
parent 4ac33098d6
commit 5f34a07801
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 2 additions and 0 deletions

View File

@ -124,6 +124,8 @@ for fts in "${FILES_TO_SOURCE[@]}"; do
if [[ -f "${fts}" ]]; then
# shellcheck disable=SC1090
source "${fts}"
else
echo "WARNING: '${fts}' does not exist."
fi
done