Compare commits

...

3 Commits

Author SHA1 Message Date
David Dollar
681a9f7e61 0.56.0 2012-08-19 12:05:07 -04:00
David Dollar
8335a2b1ba read .profile, not .profile.d 2012-08-16 12:57:22 -04:00
David Dollar
407425ca78 update changelog 2012-08-14 17:08:14 -04:00
4 changed files with 12 additions and 11 deletions

View File

@@ -1,3 +1,7 @@
## 0.55.0 (2012-08-14)
* use a forked process to exec a run with environment [David Dollar]
## 0.54.0 (2012-08-14)
* use Foreman::Process to extract command running [David Dollar]

View File

@@ -1,7 +1,7 @@
PATH
remote: .
specs:
foreman (0.55.0)
foreman (0.56.0)
thor (>= 0.13.6)
GEM

View File

@@ -16,12 +16,12 @@ usage() {
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" ;;
@@ -32,13 +32,10 @@ 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 "$@"

View File

@@ -1,5 +1,5 @@
module Foreman
VERSION = "0.55.0"
VERSION = "0.56.0"
end