Skip to content

Commit 6c20aa5

Browse files
committed
Clean up chmods
1 parent bb50d8f commit 6c20aa5

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -174,21 +174,12 @@ jobs:
174174
- name: Set permissions
175175
if: ${{ !startsWith(matrix.rid, 'win-') }}
176176
run: |
177-
if [ -f YoutubeDownloader/YoutubeDownloader ]; then
178-
chmod +x YoutubeDownloader/YoutubeDownloader
179-
fi
177+
[ -f YoutubeDownloader/YoutubeDownloader ] && chmod +x YoutubeDownloader/YoutubeDownloader
178+
[ -f YoutubeDownloader/ffmpeg ] && chmod +x YoutubeDownloader/ffmpeg
180179
181-
if [ -f YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/YoutubeDownloader ]; then
182-
chmod +x YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/YoutubeDownloader
183-
fi
184-
185-
if [ -f YoutubeDownloader/ffmpeg ]; then
186-
chmod +x YoutubeDownloader/ffmpeg
187-
fi
188-
189-
if [ -f YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/ffmpeg ]; then
190-
chmod +x YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/ffmpeg
191-
fi
180+
# macOS bundle
181+
[ -f YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/YoutubeDownloader] && chmod +x YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/YoutubeDownloader
182+
[ -f YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/ffmpeg ] && chmod +x YoutubeDownloader/YoutubeDownloader.app/Contents/MacOS/ffmpeg
192183
193184
- name: Create package
194185
# Change into the artifacts directory to avoid including the directory itself in the zip archive

0 commit comments

Comments
 (0)