Skip to content

Commit 26505e5

Browse files
committed
small fixes to installscript
1 parent a91dd80 commit 26505e5

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

install.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,38 @@ elif [[ "$(which wget)" != "" && "$(which unzip)" != "" ]]
2626
then
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-*/
3134
elif [[ "$(which curl)" != "" && "$(which unzip)" != "" ]]
3235
then
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-*/
3743
elif [[ "$(which wget)" != "" && "$(which gunzip)" != "" ]]
3844
then
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-*/
4352
elif [[ "$(which curl)" != "" && "$(which gunzip)" != "" ]]
4453
then
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-*/
4961
else
5062
echo "Ops missing dependencies"
5163
exit 2

0 commit comments

Comments
 (0)