From: Don Armstrong Date: Tue, 29 Jan 2019 01:55:01 +0000 (-0800) Subject: fix file X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=commitdiff_plain;h=cdd4cd40b89ae653ebc2351c4168526bcc2f6154 fix file --- 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))