mirror of
https://github.com/TheCase/IPMIView.app.git
synced 2025-12-10 17:19:42 +01:00
Sometimes the download ist automatically decompressed. In this case the script should try to untar the plain tar archive or else exit with an error.
10 lines
497 B
Bash
10 lines
497 B
Bash
#!/bin/sh
|
|
set -
|
|
mkdir -p Contents/Resources/IPMIView/Contents/Home/bin
|
|
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
|