3636
3737 - name : Check script permissions
3838 run : |
39- if [-f "scripts/download-ffmpeg.sh"]; then
39+ if [ -f "scripts/download-ffmpeg.sh" ]; then
4040 echo "✅ download-ffmpeg.sh found"
4141 else
4242 echo "❌ download-ffmpeg.sh not found"
@@ -159,20 +159,20 @@ jobs:
159159 # Create test-media directory
160160 mkdir -p test-media
161161
162- if [["${{ matrix.os }}" == "windows-latest"]]; then
162+ if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
163163 ./zig-out/bin/media-gen.exe video --duration 1 --width 320 --height 240 --output test-media/test_video.mp4
164164 else
165165 ./zig-out/bin/media-gen video --duration 1 --width 320 --height 240 --output test-media/test_video.mp4
166166 fi
167167
168168 # Check if file exists and has reasonable size
169- if [[! -f test-media/test_video.mp4]]; then
169+ if [[ ! -f test-media/test_video.mp4 ]]; then
170170 echo "Video file was not created"
171171 exit 1
172172 fi
173173
174174 file_size=$(stat -f%z test-media/test_video.mp4 2>/dev/null || stat -c%s test-media/test_video.mp4)
175- if [[$file_size -lt 1000]]; then
175+ if [[ $file_size -lt 1000 ]]; then
176176 echo "Video file is too small: $file_size bytes"
177177 exit 1
178178 fi
@@ -182,20 +182,20 @@ jobs:
182182 - name : Test audio generation
183183 shell : bash
184184 run : |
185- if [["${{ matrix.os }}" == "windows-latest"]]; then
185+ if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
186186 ./zig-out/bin/media-gen.exe audio --duration 1 --sample-rate 22050 --output test-media/test_audio.mp3
187187 else
188188 ./zig-out/bin/media-gen audio --duration 1 --sample-rate 22050 --output test-media/test_audio.mp3
189189 fi
190190
191191 # Check if file exists and has reasonable size
192- if [[! -f test-media/test_audio.mp3]]; then
192+ if [[ ! -f test-media/test_audio.mp3 ]]; then
193193 echo "Audio file was not created"
194194 exit 1
195195 fi
196196
197197 file_size=$(stat -f%z test-media/test_audio.mp3 2>/dev/null || stat -c%s test-media/test_audio.mp3)
198- if [[$file_size -lt 1000]]; then
198+ if [[ $file_size -lt 1000 ]]; then
199199 echo "Audio file is too small: $file_size bytes"
200200 exit 1
201201 fi
@@ -205,7 +205,7 @@ jobs:
205205 - name : Test help command
206206 shell : bash
207207 run : |
208- if [["${{ matrix.os }}" == "windows-latest"]]; then
208+ if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
209209 ./zig-out/bin/media-gen.exe help
210210 else
211211 ./zig-out/bin/media-gen help
@@ -215,13 +215,13 @@ jobs:
215215 shell : bash
216216 run : |
217217 set +e # Don't exit on error
218- if [["${{ matrix.os }}" == "windows-latest"]]; then
218+ if [[ "${{ matrix.os }}" == "windows-latest" ]]; then
219219 ./zig-out/bin/media-gen.exe invalid_command
220220 else
221221 ./zig-out/bin/media-gen invalid_command
222222 fi
223223 exit_code=$?
224- if [[$exit_code -eq 0]]; then
224+ if [[ $exit_code -eq 0 ]]; then
225225 echo "Expected non-zero exit code for invalid command"
226226 exit 1
227227 fi
0 commit comments