Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some code cleanup.

  • Loading branch information...
commit 790abf04643bbb65d966878b3e3b9562c4544e7d 1 parent 95c2f7e
Brett Bohnenkamper authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 screenfetch-dev
View
7 screenfetch-dev
@@ -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

0 comments on commit 790abf0

Please sign in to comment.
Something went wrong with that request. Please try again.