ydns / bash-updater

YDNS Bash Updater Script
GNU General Public License v3.0
80 stars 43 forks source link

Bad substitution #52

Open eisengrau opened 3 years ago

eisengrau commented 3 years ago

Hello,

I get the following log each time ydns_updater.sh runs:

/root/ydns_updater.sh: 70: /root/ydns_updater.sh: Bad substitution

I have checked the line, it is echo ${ret//[[:space:]]/}

I never got it previously, and I don't remember changing something in the system. Maybe some package is missing after an update?

florinbarbisch commented 3 years ago

I get the same error when I run sh ydns-updater.sh. I don't receive an error when I run ./ydns-updater.sh or bash ydns-updater.sh.

Here's a stackoverflow post related to this problem: https://stackoverflow.com/q/20615217/10935646