aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2020-06-29 14:49:09 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2020-06-29 14:49:09 +0800
commita74940ba27cf3889ab3b26988a61c67431dd9118 (patch)
tree2c548d634b6b8222542b091cb4cbea49116ee618
parent2f05c03c2222f8f490ac636e7dffe7702d8ae500 (diff)
Put unused gists into /tmp/gist/
-rwxr-xr-xgist3
1 files changed, 2 insertions, 1 deletions
diff --git a/gist b/gist
index 4e5815b..b27e4e8 100755
--- a/gist
+++ b/gist
@@ -577,7 +577,8 @@ _clean_repos() {
577 comm -23 <(find $folder -maxdepth 1 -type d | sed -e '1d; s#.*/##' | sort) \ 577 comm -23 <(find $folder -maxdepth 1 -type d | sed -e '1d; s#.*/##' | sort) \
578 <(while read -r ${INDEX_FORMAT[@]}; do echo $gist_id; done < "$INDEX" | sort 2> /dev/null ) \ 578 <(while read -r ${INDEX_FORMAT[@]}; do echo $gist_id; done < "$INDEX" | sort 2> /dev/null ) \
579 | while read -r dir; do 579 | while read -r dir; do
580 mv $folder/"$dir" /tmp && echo $folder/"$dir" is moved to /tmp 580 mkdir -p /tmp/gist
581 mv $folder/"$dir" /tmp/gist/ && echo $folder/"$dir" is moved to /tmp/gist/
581 done 582 done
582} 583}
583 584