Browse Source

use declare instead of local

master
Jack L. Frost 7 years ago
parent
commit
795078cb2b
  1. 4
      sup

4
sup

@ -49,7 +49,7 @@ sup.mktemp() {
}
sup.scrot() {
local tmp_file
declare tmp_file
[[ "$scrot_exec" ]] || { scrot_exec=$(type -P scrot); }
[[ "$scrot_exec" ]] || {
@ -78,7 +78,7 @@ sup.exclude() {
sup.if_url() { echo "$1" | grep -oE "$cfg_url_regex" &>/dev/null; }
sup.mktemp() {
local tmp_file_name tmp_file_name_extra="$2" tmp_dir="$1"
declare tmp_file_name tmp_file_name_extra="$2" tmp_dir="$1"
[[ -d "$tmp_dir" ]] || {
sup.err "${tmp_dir} does not exist or is not a directory."

Loading…
Cancel
Save