Skip to content

Commit 0e4db5d

Browse files
committed
Update zip outputs
1 parent c3282c9 commit 0e4db5d

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

.gitignore

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
1+
# IDE and OS files
12
/.idea/
2-
*.pdf
3+
.DS_Store
4+
5+
# Ruby
36
.bundle
4-
# Ignore all json-outputs directories
7+
*.gem
8+
*.rbc
9+
10+
# Generated outputs
11+
*.pdf
12+
pdf-outputs*/
13+
build-context/
14+
15+
# JSON outputs and zips
16+
17+
# Ignore all json-outputs directories and their contents
518
json-outputs/
6-
# But keep the directory itself
19+
20+
# But keep the directory structure
21+
!json-outputs/
722
!json-outputs/.gitkeep
8-
build-context
9-
pdf-outputs*
10-
.DS_Store
23+
24+
# Ignore all zip files
25+
*.zip
26+
27+
# But keep any zip files we want to track (if any)
28+
!*.zip.sig
29+
30+
# Temporary files
31+
*.swp
32+
*~

bin/zip-outputs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
#! /bin/sh
2-
zip -r json-outputs-$1.zip json-outputs-$1
1+
#!/bin/sh
2+
3+
# Check if a course name was provided
4+
if [ -z "$2" ]; then
5+
# No course specified, zip all courses separately
6+
zip -r json-outputs-experience_course-$1.zip json-outputs/experience_course-$1
7+
zip -r json-outputs-better_conversations_with_ai-$1.zip json-outputs/better_conversations_with_ai-$1
8+
else
9+
# Zip specific course
10+
course_name=$2
11+
zip -r json-outputs-$course_name-$1.zip json-outputs/$course_name-$1
12+
fi

0 commit comments

Comments
 (0)