Skip to content

Commit 4f28ffe

Browse files
authored
Fix: Bug in sftp backup (hestiacp#3489)
/usr/local/hestia/func/backup.sh: line 199: [: !=: unary operator expected
1 parent da3a0e0 commit 4f28ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/backup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ ftp_delete() {
196196
# SFTP Functions
197197
# sftp command function
198198
sftpc() {
199-
if [ $PRIVATEKEY != "yes" ]; then
199+
if [ "$PRIVATEKEY" != "yes" ]; then
200200
expect -f "-" "$@" << EOF
201201
set timeout 60
202202
set count 0

0 commit comments

Comments
 (0)