File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4
4
from typing import Type
5
5
6
6
# The version of the app
7
- __version__ = '0.8.1 '
7
+ __version__ = '0.8.2 '
8
8
__program__ = 'puppeter'
9
9
10
10
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ RHEL_SED_VERSION_PARSE='s/^[^0-9]+([0-9]+\.[0-9]+).*$/\1/'
7
7
COLOR_NC=' \e[0m' # No Color
8
8
COLOR_LIGHT_BLUE=' \e[1;34m'
9
9
COLOR_LIGHT_RED=' \e[1;31m'
10
- COLOR_LIGHT_GREEN=' \e[1;32m'
11
10
RUN=${RUN:- 1}
12
11
DEBUG=${DEBUG:- 0}
13
12
SUDO=${SUDO:- 1}
44
43
majversion=$( echo $version | cut -d. -f1)
45
44
46
45
run () {
47
- command=" $@ "
46
+ command=" $* "
48
47
if [[ $EUID -ne 0 ]] && [ $SUDO == 1 ]; then
49
48
command=" sudo -i ${command} "
50
49
fi
@@ -60,8 +59,9 @@ unsupported() {
60
59
}
61
60
62
61
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' ) "
65
65
66
66
echo $(( now_date - apt_date))
67
67
}
@@ -73,6 +73,7 @@ if [ $osfamily == redhat ]; then
73
73
run yum install -y python27-python-pip
74
74
fi
75
75
if [ $os == oraclelinux ]; then
76
+ run yum install -y yum-utils
76
77
run yum-config-manager --enable public_ol6_software_collections
77
78
run yum install -y python27-python-pip
78
79
fi
You can’t perform that action at this time.
0 commit comments