Repository URL to install this package:
|
Version:
1.0.0-1pclos ▾
|
#!/bin/bash
PID=`ps -eaf | grep yad | grep -v grep | awk '{print $2}'`
if [[ "" != "$PID" ]]; then
kill -9 $PID > /dev/null 2>&1
fi &
while true; do
echo "#Installing selected Brave browser package... Please wait!" 2>/dev/null
sleep 0.1
done | yad --window-icon="/usr/share/browser-installer/icons/browser-installer16.png" \
--image="/usr/share/browser-installer/icons/browser-installer.png" --on-top --width=500 \
--height=100 --fixed --center --progress --pulsate --title="Browser Installer" \
--text=$"\nRetrieving Packages and Installing Selected Browser" \
--button=Close!"/usr/share/browser-installer/icons/cancel.png" --auto-close &
apt-get update && apt-get install "brave-browser" -y
PID=`ps -eaf | grep yad | grep -v grep | awk '{print $2}'`
if [[ "" != "$PID" ]]; then
echo "killing $PID"
kill -9 $PID > /dev/null 2>&1
fi &
yad --width=450 --height=100 --fixed --center --on-top \
--text="\nBrave browser is installed and ready to use." \
--window-icon="/usr/share/browser-installer/icons/browser-installer16.png" \
--image="/usr/share/browser-installer/icons/browser-installer.png" \
--title="Browser Installer" \
--button=Close!"/usr/share/browser-installer/icons/cancel.png"
exit 0