5

Bash Script Progress

view full story
linux-howto

http://askubuntu.com – I am forming a new question based on an earlier one I posted here in regards to a BASH Script I am writing. This is only one function of the script but I started here because I figured I would have best success with completing this function over others. The code that I have thus-far is: #!/bin/bash clear; welcome="- Sudo Bypass Package Installer -"; echo $welcome; pkgFetch() { echo -n "Name of package you would like to install: "; read pkg chkPkg=$(dpkg -s $pkg|grep installed); echo "The Package [$pkg] is already installed." if [ "" == "$chkPkg" ]; then echo "The Package [$pkg] (HowTos)