From f5ed4cd090b321064039441e40fe46a6995abf9a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 31 Jul 2013 17:26:30 +1200 Subject: Use standard structure for if/for in shell Mostly for clarity reasons; using this syntax: if [ condition ]; then commands fi As opposed to: if [ condition ] then commands fi Or: [ condition ] && command --- sh/profile.d/browser.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sh/profile.d/browser.sh') diff --git a/sh/profile.d/browser.sh b/sh/profile.d/browser.sh index 2b060b06..094d2095 100644 --- a/sh/profile.d/browser.sh +++ b/sh/profile.d/browser.sh @@ -1,6 +1,5 @@ # Browser -if [ -n "$DISPLAY" ] -then +if [ -n "$DISPLAY" ]; then BROWSER='firefox' else BROWSER='lynx' -- cgit v1.2.3