File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
function finish {
3
4
cd $owd
4
5
}
@@ -25,3 +26,4 @@ for version in $PYVERSIONS; do
25
26
fi
26
27
echo === $version ===
27
28
done
29
+ finish
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ function checkout_version {
10
10
return $?
11
11
}
12
12
13
+ function finish {
14
+ cd $owd
15
+ }
16
+
13
17
owd=$( pwd)
14
18
bs=${BASH_SOURCE[0]}
15
19
if [[ $0 == $bs ]] ; then
@@ -20,5 +24,5 @@ mydir=$(dirname $bs)
20
24
fulldir=$( readlink -f $mydir )
21
25
(cd $fulldir /.. && checkout_version python-spark && checkout_version python-xdis python-2.4-to-2.7 &&
22
26
checkout_version python-uncompyle6)
23
- cd $owd
24
27
rm -v * /.python-version || true
28
+ finish
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
PYTHON_VERSION=3.0.1
3
4
pyenv local $PYTHON_VERSION
4
5
@@ -29,7 +30,7 @@ fulldir=$(readlink -f $mydir)
29
30
cd $fulldir /..
30
31
(cd $fulldir /.. && checkout_version python-spark master && checkout_version python-xdis &&
31
32
checkout_version python-uncompyle6)
32
- cd $owd
33
- rm -v * /.python-version || true
34
33
35
34
git checkout python-3.0-to-3.2 && git pull && pyenv local $PYTHON_VERSION
35
+ rm -v * /.python-version || true
36
+ finish
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ set -e
2
3
PYTHON_VERSION=3.3.7
3
4
pyenv local $PYTHON_VERSION
4
5
@@ -28,8 +29,9 @@ mydir=$(dirname $bs)
28
29
fulldir=$( readlink -f $mydir )
29
30
cd $fulldir /..
30
31
(cd $fulldir /.. && checkout_version python-spark master && checkout_version python-xdis &&
31
- checkout_version python-uncompyle6)
32
- cd $owd
32
+ checkout_version python-uncompyle6)
33
33
rm -v * /.python-version || true
34
34
35
35
git checkout python-3.3-to-3.5 && git pull && pyenv local $PYTHON_VERSION
36
+ rm -v * /.python-version || true
37
+ finish
You can’t perform that action at this time.
0 commit comments