mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-20 18:29:19 +03:00
When using "ftp" command, set its stdin to /dev/null. Non-interactive
ftp will handle it, interactive ftp will fail rather than stop.
This commit is contained in:
parent
b46fe283f6
commit
24b6e7b161
@ -30,7 +30,7 @@ get_file() {
|
|||||||
curl --remote-name "$1" || \
|
curl --remote-name "$1" || \
|
||||||
wget --passive-ftp "$1" || \
|
wget --passive-ftp "$1" || \
|
||||||
wget "$1" || \
|
wget "$1" || \
|
||||||
ftp "$1" || \
|
ftp "$1" </dev/null || \
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ get_file() {
|
|||||||
curl --remote-name "$1" || \
|
curl --remote-name "$1" || \
|
||||||
wget --passive-ftp "$1" || \
|
wget --passive-ftp "$1" || \
|
||||||
wget "$1" || \
|
wget "$1" || \
|
||||||
ftp "$1" || \
|
ftp "$1" </dev/null || \
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user