Fix createmodule.sh to handle exported functions (bug #1197321)

This commit is contained in:
Orion Poplawski 2015-03-02 09:01:51 -07:00
parent 8ae50d7dbf
commit bdf13c6db7
2 changed files with 9 additions and 3 deletions

View File

@ -48,8 +48,11 @@ printenvarray () {
env | while read x
do
key=${x%%=*}
value=${x#*=}
echo [$key]="'$value'"
value=`printenv "$key"`
if [ $? -eq 0 ]
then
echo [$key]="'$value'"
fi
done
}

View File

@ -2,7 +2,7 @@
Name: environment-modules
Version: 3.2.10
Release: 13%{?dist}
Release: 14%{?dist}
Summary: Provides dynamic modification of a user's environment
Group: System Environment/Base
@ -140,6 +140,9 @@ fi
%changelog
* Mon Mar 2 2015 Orion Poplwski <orion@cora.nwra.com> - 3.2.10-14
- Fix createmodule.sh to handle exported functions (bug #1197321)
* Wed Jan 28 2015 Orion Poplwski <orion@cora.nwra.com> - 3.2.10-13
- Add patch for python 3 support, use python3 for createmodule.py on F22