Closed Orski174 closed 1 year ago
Hi Orski174,
this is the first time I see this issue. I had to google a bit and the problem seems that /bin/bash
(see first line of Zaloha2.sh) does not exist on your system. This causes some other shell to be used that does not understand the trap command ERR
syntax.
I propose: See where bash
is located on your system and modify the first line of Zaloha2.sh accordingly.
BR F.
Thank you so much fitus, sorry for the late reply. That's probably it, I will change the bash location in the script.
Sorry, I was a little busy these couple weeks. Apparently LibreElec uses busybox so ash instead of bash, which is why I will get an error even if I change /bin/bash
to /bin/sh
.
Thank you so much for your help!
I'm trying to use this zaloha2.sh in libreelec, when i execute it with sourceDir and backupDir I get the following error:
Zaloha2.sh: trap: line 1943: ERR: invalid signal specification
I don't know why it's happening, I checked that find sort and awk exist and they do so I have no idea what might be causing it.
Thank you.