Some code cleanup.

This commit is contained in:
Brett Bohnenkamper
2012-07-28 02:13:02 -05:00
parent 95c2f7e54b
commit 790abf0464

View File

@@ -60,11 +60,11 @@ shotfile=$(echo "screenFetch-`date +'%Y-%m-%d_%H-%M-%S'`.png")
# Verbose Setting - Set to 1 for verbose output.
verbosity=
verboseOut () {
function verboseOut () {
echo -e "\e[1;31m:: \e[0m$1"
}
errorOut () {
function errorOut () {
echo -e "\e[1;37m[[ \e[1;31m! \e[1;37m]] \e[0m$1"
}
@@ -481,7 +481,8 @@ detectmem () {
# Shell Detection - Begin
detectshell () {
myShell=$(echo $SHELL | awk -F"/" '{print $NF}')
# myShell=$(echo $SHELL | awk -F"/" '{print $NF}')
myShell=${SHELL##*/}
[[ "$verbosity" -eq "1" ]] && verboseOut "Finding current shell...found as '$myShell'"
}
# Shell Detection - End