Fix new shellcheck issues
This commit is contained in:
parent
530befd681
commit
060489f1bc
@ -37,7 +37,7 @@ get_selection() {
|
|||||||
# https://github.com/halfwit/dotfiles/blob/master/.config/dmenu/font
|
# https://github.com/halfwit/dotfiles/blob/master/.config/dmenu/font
|
||||||
[[ -s $confdir/dmenu/font ]] && read -r font < "$confdir"/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
|
# shellcheck source=/dev/null
|
||||||
[[ -s $optsfile ]] && source "$optsfile"
|
[[ -s $optsfile ]] && source "$optsfile"
|
||||||
@ -46,7 +46,7 @@ url=$(get_selection)
|
|||||||
url=${url/*http/http}
|
url=${url/*http/http}
|
||||||
|
|
||||||
# If no selection is made, exit (escape pressed, e.g.)
|
# If no selection is made, exit (escape pressed, e.g.)
|
||||||
[[ ! $url ]] && exit 0
|
[[ -z $url ]] && exit 0
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
open) printf '%s' "open $url" >> "$QUTE_FIFO" || qutebrowser "$url" ;;
|
open) printf '%s' "open $url" >> "$QUTE_FIFO" || qutebrowser "$url" ;;
|
||||||
|
@ -71,7 +71,7 @@ EOF
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ $DOCKER ]]; then
|
if [[ -n $DOCKER ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ $TRAVIS_OS_NAME == osx ]]; then
|
elif [[ $TRAVIS_OS_NAME == osx ]]; then
|
||||||
# Disable App Nap
|
# Disable App Nap
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [[ $DOCKER ]]; then
|
if [[ -n $DOCKER ]]; then
|
||||||
docker run \
|
docker run \
|
||||||
--privileged \
|
--privileged \
|
||||||
-v "$PWD:/outside" \
|
-v "$PWD:/outside" \
|
||||||
|
Loading…
Reference in New Issue
Block a user