bin/foreman-runner in foreman-0.55.0 vs bin/foreman-runner in foreman-0.56.0

- old
+ new

@@ -14,31 +14,28 @@ usage() { cat $0 | grep '^#/' | cut -c4- exit } -read_profiled="" +read_profile="" while getopts ":hd:p" OPT; do case $OPT in d) cd "$OPTARG" ;; - p) read_profiled="1" ;; + p) read_profile="1" ;; h) usage ;; \?) error "invalid option: -$OPTARG" ;; :) error "option -$OPTARG requires an argument" ;; esac done shift $((OPTIND-1)) [ -z "$1" ] && usage -if [ "$read_profiled" == "1" ]; then - shopt -s nullglob - for script in .profile.d/*; do - echo "sourcing $script" - source $script - done - shopt -u nullglob +if [ "$read_profile" == "1" ]; then + if [ -f .profile ]; then + source .profile + fi fi exec "$@"