OneCDOnly / sherpa

A mini-package-manager for QNAP NAS
GNU General Public License v3.0
114 stars 13 forks source link

bug: syntax error only when running new type 1 scripts via sherpa management script #231

Closed OneCDOnly closed 1 year ago

OneCDOnly commented 1 year ago

Service-script works fine when run on its own. But when run via sherpa:

dbug: (--) exec: '/bin/sh /share/CACHEDEV1_DATA/.qpkg/SABnzbd/sabnzbd3.sh restart' ... 
/share/CACHEDEV1_DATA/.qpkg/SABnzbd/sabnzbd3.sh: line 694: syntax error near unexpected token `>'
/share/CACHEDEV1_DATA/.qpkg/SABnzbd/sabnzbd3.sh: line 694: `        eval "$1" > >(/usr/bin/tee "$LOG_PATHFILE") 2>&1   # NOTE: 'tee' buffers stdout here'

I suspect the problem here will be the nested eval commands.