Skip to content

Commit a777d8c

Browse files
committed
Minor cleanups around vars and archiving
1 parent 38bb378 commit a777d8c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ install:
2222
before_script:
2323
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
2424
- 'export LSB_RELEASE=${LSB_RELEASE:-$(lsb_release -rs || echo ${$(sw_vers -productVersion)%*.*})}'
25-
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || "osx")}'
25+
- 'export OS_NAME=${OS_NAME:-$(lsb_release -is | tr "A-Z" "a-z" || echo "osx")}'
2626
- 'export ARCH=${ARCH:-$(uname -m)}'
2727
- 'export PACKAGES=${PACKAGES:-pip numpy nose pytest mock wheel}'
2828

bin/archive

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,14 @@ for DEST in $DESTS ; do
4949
mkdir -p $(dirname $DEST)
5050
tar -cjf $DEST $TAR_PATHS
5151

52-
cd $(dirname $DEST) &>/dev/null
52+
pushd $(dirname $DEST) &>/dev/null
5353

5454
shopt -s nullglob
5555
for f in *.* ; do
5656
sha256sum $f > ${f}.sha256sum.txt
5757
done
5858

59+
popd &>/dev/null
60+
5961
echo "---> $DEST"
6062
done

0 commit comments

Comments
 (0)