Silent visudo installation

This commit is contained in:
Mentor
2022-09-18 22:37:41 +02:00
parent fcf549543e
commit f24df3b9fd

View File

@@ -42,14 +42,16 @@ sudo cp $bateryfolder/battery.sh $binfolder/battery
sudo chmod 755 $binfolder/battery
sudo chmod u+x $binfolder/battery
sudo bash $bateryfolder/battery.sh visudo
echo "[ 7/9 ] Set up visudo declarations"
# Remove tempfiles
cd ../..
echo "[ 7/9 ] Removing temp folder $tempfolder"
echo "[ 8/9 ] Removing temp folder $tempfolder"
rm -rf $tempfolder
echo "[ 8/9 ] Removed temporary build files"
echo "[ 9/9 ] Removed temporary build files"
$binfolder/battery visudo
echo "[ 9/9 ] Set up visudo declarations"
if [ -z "$platypus" ]; then
echo -e "\n🎉 Battery tool installed. Type \"battery\" for instructions.\n"