@@ -26,26 +26,38 @@ elif [[ "$(which wget)" != "" && "$(which unzip)" != "" ]]
26
26
then
27
27
echo " Using wget and unzip"
28
28
wget -q -O /tmp/piduck.zip https://github.com/gitdev-bash/piduck/zipball/master/
29
- unzip /tmp/piduck.zip
29
+ unzip /tmp/piduck.zip /tmp/
30
30
rm /tmp/piduck.zip
31
+ mkdir /tmp/piduck
32
+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
33
+ rm -rf /tmp/gitdev-bash-piduck-* /
31
34
elif [[ " $( which curl) " != " " && " $( which unzip) " != " " ]]
32
35
then
33
36
echo " Using curl and unzip"
34
37
curl -sSL -o /tmp/piduck.zip https://github.com/gitdev-bash/piduck/zipball/master/
35
- unzip /tmp/piduck.zip
38
+ unzip /tmp/piduck.zip /tmp/
36
39
rm /tmp/piduck.zip
40
+ mkdir /tmp/piduck
41
+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
42
+ rm -rf /tmp/gitdev-bash-piduck-* /
37
43
elif [[ " $( which wget) " != " " && " $( which gunzip) " != " " ]]
38
44
then
39
45
echo " Using wget and gunzip"
40
- wget -q -O /tmp/piduck.zip https://github.com/gitdev-bash/piduck/tarball/master/
46
+ wget -q -O /tmp/piduck.tar.gz https://github.com/gitdev-bash/piduck/tarball/master/
41
47
tar -xzvf /tmp/piduck.tar.gz
42
48
rm /tmp/piduck.tar.gz
49
+ mkdir /tmp/piduck
50
+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
51
+ rm -rf /tmp/gitdev-bash-piduck-* /
43
52
elif [[ " $( which curl) " != " " && " $( which gunzip) " != " " ]]
44
53
then
45
54
echo " Using curl and gunzip"
46
- curl -sSL -o /tmp/piduck.zip https://github.com/gitdev-bash/piduck/tarball/master/
55
+ curl -sSL -o /tmp/piduck.tar.gz https://github.com/gitdev-bash/piduck/tarball/master/
47
56
tar -xzvf /tmp/piduck.tar.gz
48
57
rm /tmp/piduck.tar.gz
58
+ mkdir /tmp/piduck
59
+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
60
+ rm -rf /tmp/gitdev-bash-piduck-* /
49
61
else
50
62
echo " Ops missing dependencies"
51
63
exit 2
0 commit comments