aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/gist b/scripts/gist
index 8805e19..8a22b22 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -277,11 +277,14 @@ _help_message() {
277 277
278_configure() { 278_configure() {
279 case "$1 $2" in 279 case "$1 $2" in
280 auto_sync*) echo -n $1= ;;& 280 auto_sync[[:space:]]*) echo -n $1 ;;&
281 *true) echo $2; shift; shift ;; 281 *true) echo =$2;;
282 *false) echo $2; shift; shift ;; 282 *false) echo =$2;;
283 folder) shift 283 folder) echo -n $1=$2 ;;
284 esac 284 esac
285 echo target $target
286 [[ $target =~ = ]] && sed -i -E "/^$1/ d" $config
287 echo $target >> $config
285} 288}
286 289
287case "$1" in 290case "$1" in