diff options
author | skydrome | 2020-02-14 02:16:27 -0500 |
---|---|---|
committer | skydrome | 2020-02-14 02:16:27 -0500 |
commit | b9033e95588f6e219f381440311454799ecb7a60 (patch) | |
tree | 5734b3bf09d1438ca2a8508494ddd453c507c1fe /chromium-i2p.sh | |
parent | 6976fb77aaa9b8adddf822cb1abc808615fe0172 (diff) | |
download | aur-b9033e95588f6e219f381440311454799ecb7a60.tar.gz |
shell script linting
and other general changes
Diffstat (limited to 'chromium-i2p.sh')
-rw-r--r-- | chromium-i2p.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium-i2p.sh b/chromium-i2p.sh index e9a9181fcccd..35c9b226c5a3 100644 --- a/chromium-i2p.sh +++ b/chromium-i2p.sh @@ -1,11 +1,11 @@ - #!/usr/bin/env bash +#!/usr/bin/env bash set -e DATADIR=${XDG_CONFIG_HOME:-$HOME/.config}/chromium-i2p [[ ! -f $DATADIR/.config ]] && { echo "creating config..." - install -dm700 $DATADIR + install -dm700 "$DATADIR" cat <<< ' CACHEDIR=/dev/shm/chromium-i2p # store in ram, or #CACHEDIR=$DATADIR/.tmp # keep on disk @@ -15,11 +15,11 @@ INCOGNITO=--incognito # comment out if you wish to have # urlhistory, passwords, etc. saved PROXY=127.0.0.1:4444 CONSOLE=127.0.0.1:7657 -' >$DATADIR/.config +' >"$DATADIR/.config" echo "$DATADIR/.config" } -source $DATADIR/.config +source "$DATADIR/.config" /usr/bin/chromium "$INCOGNITO" \ --user-data-dir="$DATADIR" \ @@ -55,4 +55,4 @@ source $DATADIR/.config --no-report-upload \ --site-per-process \ --use-fake-device-for-media-stream \ - ${@:-$CONSOLE} + "${@:-$CONSOLE}" |