This commit is contained in:
joachimschmidt557 2019-12-07 14:20:10 +01:00
parent e69144a7d9
commit 78e95e5be7

7
src
View file

@ -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