X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=upload_ics;fp=upload_ics;h=f0169c48dc9724541fb045e6c311d87e0f093425;hb=cdd4cd40b89ae653ebc2351c4168526bcc2f6154;hp=559d442c273a81ab68387ccf3ba4740362734d36;hpb=799dd7bdd11086efbaf7e6c5e0c9abf37fa39267;p=bin.git diff --git a/upload_ics b/upload_ics old mode 100644 new mode 100755 index 559d442..f0169c4 --- a/upload_ics +++ b/upload_ics @@ -8,7 +8,7 @@ tempdir=$(mktemp -d) tempdir=$(readlink -f "$tempdir") trap "/bin/rm -f \"$tempdir\"/*.ics; rmdir \"$tempdir\"" QUIT INT EXIT -for ics in "$@"; do +for file in "$@"; do bevents=($(grep -n BEGIN:VEVENT "$file" | cut -d: -f1)) eevents=($(grep -n END:VEVENT "$file" | cut -d: -f1))