@@ -26,26 +26,38 @@ elif [[ "$(which wget)" != "" && "$(which unzip)" != "" ]]
2626then
2727 echo " Using wget and unzip"
2828 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/
3030 rm /tmp/piduck.zip
31+ mkdir /tmp/piduck
32+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
33+ rm -rf /tmp/gitdev-bash-piduck-* /
3134elif [[ " $( which curl) " != " " && " $( which unzip) " != " " ]]
3235then
3336 echo " Using curl and unzip"
3437 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/
3639 rm /tmp/piduck.zip
40+ mkdir /tmp/piduck
41+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
42+ rm -rf /tmp/gitdev-bash-piduck-* /
3743elif [[ " $( which wget) " != " " && " $( which gunzip) " != " " ]]
3844then
3945 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/
4147 tar -xzvf /tmp/piduck.tar.gz
4248 rm /tmp/piduck.tar.gz
49+ mkdir /tmp/piduck
50+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
51+ rm -rf /tmp/gitdev-bash-piduck-* /
4352elif [[ " $( which curl) " != " " && " $( which gunzip) " != " " ]]
4453then
4554 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/
4756 tar -xzvf /tmp/piduck.tar.gz
4857 rm /tmp/piduck.tar.gz
58+ mkdir /tmp/piduck
59+ mv /tmp/gitdev-bash-piduck-* /* /tmp/piduck/
60+ rm -rf /tmp/gitdev-bash-piduck-* /
4961else
5062 echo " Ops missing dependencies"
5163 exit 2
0 commit comments