diff options
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() { |