From 97b1be6732a490c95c5676d32f81af37ac151ffc Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 21 Nov 2014 13:48:57 +0300 Subject: [PATCH] the hash table declarations don't need to be in the config. --- sx-open | 4 ++++ sx-open.cfg | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sx-open b/sx-open index 63b49d1..99c32e9 100755 --- a/sx-open +++ b/sx-open @@ -45,6 +45,10 @@ handle_fs_target() { } main() { + declare -A uri_handlers + declare -A mime_handlers + declare -A filename_handlers + target="$1" [[ "$target" ]] || { usage; exit; } diff --git a/sx-open.cfg b/sx-open.cfg index cc4e526..95e51d1 100644 --- a/sx-open.cfg +++ b/sx-open.cfg @@ -1,10 +1,6 @@ # Configuration file for sx-open # Note that as sx-open checks the regexes in order, they should be placed in order from specific to less so. -declare -A uri_handlers -declare -A mime_handlers -declare -A filename_handlers - uri_handlers=( ["steam"]='^steam://.+' ["browser"]='.+'