Fix new shellcheck issues

This commit is contained in:
Florian Bruhin 2019-01-03 22:11:58 +01:00
parent 530befd681
commit 060489f1bc
3 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ get_selection() {
# https://github.com/halfwit/dotfiles/blob/master/.config/dmenu/font
[[ -s $confdir/dmenu/font ]] && read -r font < "$confdir"/dmenu/font
[[ $font ]] && opts+=(-fn "$font")
[[ -n $font ]] && opts+=(-fn "$font")
# shellcheck source=/dev/null
[[ -s $optsfile ]] && source "$optsfile"
@ -46,7 +46,7 @@ url=$(get_selection)
url=${url/*http/http}
# If no selection is made, exit (escape pressed, e.g.)
[[ ! $url ]] && exit 0
[[ -z $url ]] && exit 0
case $1 in
open) printf '%s' "open $url" >> "$QUTE_FIFO" || qutebrowser "$url" ;;

View File

@ -71,7 +71,7 @@ EOF
set -e
if [[ $DOCKER ]]; then
if [[ -n $DOCKER ]]; then
exit 0
elif [[ $TRAVIS_OS_NAME == osx ]]; then
# Disable App Nap

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [[ $DOCKER ]]; then
if [[ -n $DOCKER ]]; then
docker run \
--privileged \
-v "$PWD:/outside" \