Skip to content

Commit 0be8285

Browse files
author
Suszyński Krzysztof
committed
Merge branch 'hotfix/v0.8.2'
2 parents 7bb7a98 + d9e6240 commit 0be8285

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: puppeter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import Type
55

66
# The version of the app
7-
__version__ = '0.8.1'
7+
__version__ = '0.8.2'
88
__program__ = 'puppeter'
99

1010

Diff for: setup.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ RHEL_SED_VERSION_PARSE='s/^[^0-9]+([0-9]+\.[0-9]+).*$/\1/'
77
COLOR_NC='\e[0m' # No Color
88
COLOR_LIGHT_BLUE='\e[1;34m'
99
COLOR_LIGHT_RED='\e[1;31m'
10-
COLOR_LIGHT_GREEN='\e[1;32m'
1110
RUN=${RUN:-1}
1211
DEBUG=${DEBUG:-0}
1312
SUDO=${SUDO:-1}
@@ -44,7 +43,7 @@ fi
4443
majversion=$(echo $version | cut -d. -f1)
4544

4645
run() {
47-
command="$@"
46+
command="$*"
4847
if [[ $EUID -ne 0 ]] && [ $SUDO == 1 ]; then
4948
command="sudo -i ${command}"
5049
fi
@@ -60,8 +59,9 @@ unsupported() {
6059
}
6160

6261
last_aptget_update() {
63-
local apt_date="$(stat -c %Y '/var/cache/apt')"
64-
local now_date="$(date +'%s')"
62+
local apt_date now_date
63+
apt_date="$(stat -c %Y '/var/cache/apt')"
64+
now_date="$(date +'%s')"
6565

6666
echo $((now_date - apt_date))
6767
}
@@ -73,6 +73,7 @@ if [ $osfamily == redhat ]; then
7373
run yum install -y python27-python-pip
7474
fi
7575
if [ $os == oraclelinux ]; then
76+
run yum install -y yum-utils
7677
run yum-config-manager --enable public_ol6_software_collections
7778
run yum install -y python27-python-pip
7879
fi

0 commit comments

Comments
 (0)