Script output in the package installer
Script output in the package installer
- Subject: Script output in the package installer
- From: email@hidden
- Date: Thu, 28 Feb 2019 00:29:18 +0100
Dear all,
I am looking for a way to output messages from a bash script in the
Packages installer interface during the installation process.
Is something like this exists, through a plugin or something else?
The thing it's quite easy: I have a Pre-installation script like this:
---------------
#!/bin/bash
exists()
{
command -v "$1" >/dev/null 2>&1
}
if exists magick; then
echo "ImageMagick is already installed."
exit
else
echo "Install ImageMagick"
mv ImageMagick-x86_64-apple-darwin17.7.0.tar /usr/local
cd /usr/local
tar xvzf ImageMagick-x86_64-apple-darwin17.7.0.tar
sleep 1
rm /usr/local/ImageMagick-x86_64-apple-darwin17.7.0.tar
fi
---------------
Is there a way to see in the installer interface the two
echo "ImageMagick is already installed."
or
echo "Install ImageMagick"
Thank you very much for your help,
Jean
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden