cytopia / mysqldump-secure

[sh] Encrypted mysqldump script with compression, logging, blacklisting and Nagios/Icinga monitoring integration
https://mysqldump-secure.org
147 stars 38 forks source link

Remove non posix conform $PIPESTATUS array #1

Closed cytopia closed 9 years ago

cytopia commented 9 years ago

$PIPESTATUS or arrays are not allowed in POSIX, see shellcheck:

mysqldump-secure.sh|513 col 8 warning| In POSIX sh, array references are not supported. [SC2039] [sh/shellcheck]
mysqldump-secure.sh|513 col 8 warning| In POSIX sh, PIPESTATUS is not supported. [SC2039] [sh/shellcheck]
cytopia commented 9 years ago

replaced with POSIX compliant /bin/sh code