change to script dir

This commit is contained in:
Antonio J. Delgado 2023-09-10 12:49:01 +03:00
parent 2202566054
commit 4e07c6f545

View file

@ -1,6 +1,7 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Load other bashrc files
for bashrc_file in $(find /etc/bashrc.d -type f | sort | grep -v ~$)
for bashrc_file in $(find "${script_dir}/bashrc.d" -type f | sort | grep -v ~$)
do
if [ -n "${bashrc_file}" ]; then
# shellcheck disable=SC1090