aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist4
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() {