diff options
author | typebrook <typebrook@gmail.com> | 2020-01-13 09:39:17 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-01-13 09:39:17 +0800 |
commit | b7172263b940a600c11368895e27e42450043239 (patch) | |
tree | b28bda1e0c7075ac55d36b803df06d58a0fadfff /scripts/gist | |
parent | ebf3cb0a8fd0c25be49c4e1bf65573bb3ee74446 (diff) |
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-x | scripts/gist | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index e3fedad..7299d41 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -121,7 +121,9 @@ _delete_gist() { | |||
121 | _clean_repos() { | 121 | _clean_repos() { |
122 | comm -23 <(find $folder -maxdepth 1 -type d | sed '1d; s#.*/##' | sort) \ | 122 | comm -23 <(find $folder -maxdepth 1 -type d | sed '1d; s#.*/##' | sort) \ |
123 | <(cat $index | cut -d' ' -f2 | sed 's#.*/##' | sort) |\ | 123 | <(cat $index | cut -d' ' -f2 | sed 's#.*/##' | sort) |\ |
124 | xargs -I{} rm -rf $folder/{} | 124 | while read dir; do |
125 | mv $folder/$dir /tmp && echo move $folder/$dir to /tmp | ||
126 | done | ||
125 | } | 127 | } |
126 | 128 | ||
127 | _show_detail() { | 129 | _show_detail() { |