Skip to content

Commit

Permalink
Fix linting errors in Tutorial/*
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Mar 16, 2016
1 parent dcc985d commit 92ed0fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Tutorial/is_bitbar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@

# <bitbar.title>Is BitBar?</bitbar.title>
# <bitbar.author>Mat Ryer and Tyler Bunnell</bitbar.author>
# <bitbar.author.github>matryer</bitbar.author.github>
# <bitbar.desc>Example script showing use of $BITBAR environment variable</bitbar.desc>
# <bitbar.image>https://i.imgur.com/TcZJI06.png</bitbar.image>
#
# Example script showing how to let your scripts determine
# whether they are expected to deliver BitBar output or not.
#
# Put this script in your BitBar plugins folder and notice
# it says "In BitBar", but run it directly in Terminal, and it
# says "In Terminal".
BitBar=${BitBar}

if [ $BitBar ]; then
if [ "$BitBar" ]; then
# this script is being called from within
# BitBar.
echo "In BitBar"
Expand Down
3 changes: 2 additions & 1 deletion Tutorial/is_darkmode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
# <bitbar.desc>Example script showing how to let your scripts determine whether OSX is in Dark Mode so you can adjust appearance. Must restart Bitbar after changing setting.</bitbar.desc>
# <bitbar.dependencies></bitbar.dependencies>
# <bitbar.image>http://i.imgur.com/2ark3Bq.png</bitbar.image>
BitBarDarkMode=${BitBarDarkMode}

if [ $BitBarDarkMode ]; then
if [ "$BitBarDarkMode" ]; then
# OSX has Dark Mode enabled.
echo "Dark | color=white"
else
Expand Down

0 comments on commit 92ed0fc

Please sign in to comment.