Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Fjen Undso
myftpdumper
Commits
322a7e0d
Commit
322a7e0d
authored
Mar 08, 2017
by
Fjen Undso
Browse files
fix ftp directory check
parent
bfe481f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
myftpdumper.sh
View file @
322a7e0d
...
...
@@ -97,7 +97,7 @@ if [ "$FTPTYPE" != "ftp" ] && [ "$FTPTYPE" != "sftp" ]; then
failftp
=
0
else
### FTP: directory permission check
ftppwd
=
$(
execftp
"mkdir -p
$FTPDIR
/
$date
&&
cd
$FTPDIR
/
$date
; pwd; exit"
)
ftppwd
=
$(
execftp
"mkdir -p
$FTPDIR
/
$date
;
cd
$FTPDIR
/
$date
; pwd; exit"
)
FTPDIRnoslash
=
${
FTPDIR
%\/
}
# remove trailing /
if
[[
"
$ftppwd
"
!=
*
"
$FTPDIRnoslash
/
$date
"
]]
;
then
echo
"Error: failed to create
$FTPDIRnoslash
/
$date
on ftp"
>
&2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment