1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/env bash executed_file=$(readlink -f ${BASH_SOURCE[0]}) script_dir=$(dirname ${executed_file}) script_name=$(basename ${executed_file}) for i in $(ls /etc/profile.d/qpi*); do echo "sourcing: $i" source $i done echo "Environment" env echo "Running: $@" $@