aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-05-12 14:20:07 +0800
committertypebrook <typebrook@gmail.com>2020-05-12 22:14:33 +0800
commit4d838c77a37f4264a65a6be9d45026fdc21b9a8f (patch)
tree4e5d3e59bd5bf2793e4b37beeccbbda52a6af048
parentb0939df4c09fe7f9097e9f5d0a328037ff6928c3 (diff)
Initialize variables to avoid affetcted by env variables
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 5977a1e..258bf9e 100755
--- a/gist
+++ b/gist
@@ -641,7 +641,7 @@ _push_to_remote() {
641# Set filename/description/permission for a new gist 641# Set filename/description/permission for a new gist
642_set_gist() { 642_set_gist() {
643 files=() 643 files=()
644 public=True 644 description=''; filename=''; public=True
645 while [[ -n "$*" ]]; do case $1 in 645 while [[ -n "$*" ]]; do case $1 in
646 -d | --desc) 646 -d | --desc)
647 description="$2" 647 description="$2"