Merge pull request #12 from fw8/fw8-handle-uncompressed-download

Also try to untar the uncompressed version of the archive
This commit is contained in:
Bryan Casey
2020-04-07 19:27:57 -06:00
committed by GitHub

View File

@@ -1,7 +1,9 @@
#!/bin/sh
set -
mkdir -p Contents/Resources/IPMIView/Contents/Home/bin
tar -zxvf ~/Downloads/IPMIView*.tar.gz --strip=1 -C ./Contents/Resources/IPMIView/.
tar -zxvf ~/Downloads/IPMIView*.tar.gz --strip=1 -C ./Contents/Resources/IPMIView/. ||
tar -xvf ~/Downloads/IPMIView*.tar --strip=1 -C ./Contents/Resources/IPMIView/. ||
{ echo "Something went wrong, check download of IPMIView archive" && exit 1; }
ln -s /usr/bin/java Contents/Resources/IPMIView/Contents/Home/bin/java
cd ..
rsync -arv --exclude=.git --exclude=Contents/Resources/IPMIView/jre IPMIView.app ~/Applications