- Code: Select all
#!/bin/bash
mkdir "output"
for filename in ./*.mkv
do
mkvmerge -o "./output/$filename" --audio-tracks 4 "./$filename"
done
I named the sh script test.sh. When I run this script from terminal
- Code: Select all
bash test.sh
If I add a "Run shell script" action in hazel I am unable to select my test.sh file for some reason.
If I try to embed the code I get errors all over the place and it won't run.
What am I doing wrong?