Code cleanup, thx to http://www.shellcheck.net
This commit is contained in:
parent
958ae3f264
commit
6cb89f0cd6
1
sx-open
1
sx-open
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
# Source the config file.
|
# Source the config file.
|
||||||
cfg_file="$HOME/.config/sx-open.cfg"
|
cfg_file="$HOME/.config/sx-open.cfg"
|
||||||
cfg_uri_regex='^[A-Za-z]([A-Za-z0-9+.-]+)?://.+'
|
|
||||||
[[ -f "$cfg_file" ]] && { source "$cfg_file"; }
|
[[ -f "$cfg_file" ]] && { source "$cfg_file"; }
|
||||||
|
|
||||||
usage() { echo "${0##*/} <uri/file>"; }
|
usage() { echo "${0##*/} <uri/file>"; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user