나는 내 스크립트에 다음 명령 세트를 가지고 : ShellCheck 나에게 SCP 라인에 경고를주고있다 message="Secure copying file $remoteHost"
backupLogOutput "Info $message"
$(scp "$file" "$remoteUser"@"$remoteHost":"$remotePath") >> "$BACK
아래 코드의 두 번째 줄에 ShellCheck 경고 [SC2045]가 표시됩니다. 마지막으로 ls을 시도하기 전에 디렉터리가 비어 있지 않은지 확인하는대로 무시해도됩니까? if [ "$(ls -A "$retryDir")" ] ; then
for thisRetryFile in $(ls "$retryDir"/*.tar.gz) ; do
scp