change to script dir
This commit is contained in:
parent
2202566054
commit
4e07c6f545
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
# Load other bashrc files
|
# 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
|
do
|
||||||
if [ -n "${bashrc_file}" ]; then
|
if [ -n "${bashrc_file}" ]; then
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
|
|
Loading…
Reference in a new issue