Skip to content

Commit

Permalink
Some code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brett Bohnenkamper committed Jul 28, 2012
1 parent 95c2f7e commit 790abf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions screenfetch-dev
Expand Up @@ -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"
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 790abf0

Please sign in to comment.