scripts

Scripts
git clone git://git.wimdupont.com/scripts.git
Log | Files | Refs | LICENSE

askpass (162B)


      1 #!/bin/bash
      2 
      3 if [[ -n $DISPLAY ]]; then
      4 	zenity --password --title="Sudo password prompt"
      5 else
      6 	read -s -p "Sudo password: " password && echo -n "${password}"
      7 fi