We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 1.16 Server: SLES11 Sp3 Presinstalled: cfg2html
In /usr/share/rear/output/default/95_copy_result_files.sh Line:38 lftp -c "open $OUTPUT_URL; mput ${RESULT_FILES[@]}"
Seems to execute
lftp -c 'open http://Server/call; mput 1.html' 1.iso that results in Command not found
Somehow bash mask wrong ' when giving him an array
Same Error Can be produced with an shell script:
export OUTPUT_URL="http://SERVER1/upload/" RESULT_FILES=( "/var/lib/rear/recovery/cfg2html/SERVER1.html" "/var/lib/rear/output/rear-SERVER2.iso" )
Solution: X=echo "${RESULT_FILES[@]}" lftp -c "open $OUTPUT_URL; mput $X"
echo "${RESULT_FILES[@]}"
When de installing cfg2html, it works since the array has only one entry
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version 1.16
Server: SLES11 Sp3
Presinstalled: cfg2html
In /usr/share/rear/output/default/95_copy_result_files.sh$OUTPUT_URL; mput $ {RESULT_FILES[@]}"
Line:38
lftp -c "open
Seems to execute
lftp -c 'open http://Server/call; mput 1.html' 1.iso
that results in Command not found
Somehow bash mask wrong ' when giving him an array
Same Error Can be produced with an shell script:
!/bin/bash -x
export OUTPUT_URL="http://SERVER1/upload/"
RESULT_FILES=( "/var/lib/rear/recovery/cfg2html/SERVER1.html" "/var/lib/rear/output/rear-SERVER2.iso" )
lftp -c "open$OUTPUT_URL; mput "$ {RESULT_FILES[@]}""
Solution:
X=
echo "${RESULT_FILES[@]}"
lftp -c "open $OUTPUT_URL; mput $X"
When de installing cfg2html, it works since the array has only one entry
The text was updated successfully, but these errors were encountered: