wip src
This commit is contained in:
parent
e69144a7d9
commit
78e95e5be7
1 changed files with 5 additions and 2 deletions
7
src
7
src
|
|
@ -29,10 +29,13 @@ add_item() {
|
||||||
|
|
||||||
rm_item() {
|
rm_item() {
|
||||||
## Remove this entry from the srcfile
|
## Remove this entry from the srcfile
|
||||||
|
## and delete the source files afterwards
|
||||||
tmp="$srcfile.tmp"
|
tmp="$srcfile.tmp"
|
||||||
|
|
||||||
awk "$$3 != $1 { print }" "$srcfile" > "$tmp"
|
awk "$$3 != $1 { print }" "$srcfile" > "$tmp"
|
||||||
mv "$tmp" "$srcfile"
|
mv "$tmp" "$srcfile"
|
||||||
|
|
||||||
|
rm -rf "$3"
|
||||||
}
|
}
|
||||||
|
|
||||||
update_gitrepo() {
|
update_gitrepo() {
|
||||||
|
|
@ -106,7 +109,7 @@ update_all() {
|
||||||
"")
|
"")
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Errors occurred during: $updated"
|
echo "Errors occurred during:$updated"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
@ -115,7 +118,7 @@ update_all() {
|
||||||
echo "Nothing updated"
|
echo "Nothing updated"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Updated: $updated"
|
echo "Updated:$updated"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue