From 2ba4f463047ef80306431db444aaca6d43409a6f Mon Sep 17 00:00:00 2001 From: coderkun Date: Thu, 16 Feb 2017 21:44:01 +0100 Subject: [PATCH] =?UTF-8?q?Convert=20tabs=20to=20spaces=20in=20script=20?= =?UTF-8?q?=E2=80=9Cepiphany=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epiphany | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100644 => 100755 epiphany diff --git a/epiphany b/epiphany old mode 100644 new mode 100755 index c35efd5..ebf8663 --- a/epiphany +++ b/epiphany @@ -9,7 +9,7 @@ LOCALSTORAGE_DIR="$HOME/.local/share/epiphany/localstorage" /usr/bin/epiphany $@ RC=$? if [[ $RC != 0 ]]; then - exit $RC + exit $RC fi @@ -19,28 +19,28 @@ cd "$CONFIG_DIR" # Check cookie file if [ ! -e "$COOKIES" ]; then - exit + exit fi # Check whitelist if [ ! -e "$WHITELIST" ]; then - exit + exit fi # Read whitelist domainList=() while read domain do - if [ -n "$domain" ]; then - domainList=(${domainList[@]} $domain) - fi + if [ -n "$domain" ]; then + domainList=(${domainList[@]} $domain) + fi done < "${WHITELIST}" # Join whitelist to string function join { - local IFS="$1"; - shift; - echo "$*"; + local IFS="$1"; + shift; + echo "$*"; } domainString=`join , "${domainList[@]}"` domainString=\'${domainString//,/\',\'}\'