diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-06-29 14:49:09 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-06-29 14:49:09 +0800 |
commit | a74940ba27cf3889ab3b26988a61c67431dd9118 (patch) | |
tree | 2c548d634b6b8222542b091cb4cbea49116ee618 | |
parent | 2f05c03c2222f8f490ac636e7dffe7702d8ae500 (diff) |
Put unused gists into /tmp/gist/
-rwxr-xr-x | gist | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 | ||