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
OSUG
RESIF
datadump
Commits
6f82ecdc
Commit
6f82ecdc
authored
Aug 20, 2019
by
Jonathan Schaeffer
Browse files
ignore empty lines in KEYFILE
parent
8acc1c00
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resifdatadump
View file @
6f82ecdc
...
...
@@ -319,7 +319,7 @@ if [[ -r ${RESIFDD_KEYFILE} ]]; then
echo
"Using
$RESIFDD_KEYFILE
as references to transfer data"
# Make a list of directories from KEYFILE and pass it to pack_and_send
# We use only the first word of each line, compose a full path and test for it's existence
for
i
in
$(
sed
-e
"s, .*
$,
,"
-e
"s,_,/,g"
-e
"s,^,
$SNAPSHOT_DIR
/,"
$RESIFDD_KEYFILE
|sort
-u
)
;
do
for
i
in
$(
sed
-e
"s, .*
$,
,"
-e
"/^
\s
*
$/
d"
-e
"s,_,/,g"
-e
"s,^,
$SNAPSHOT_DIR
/,"
$RESIFDD_KEYFILE
|sort
-u
)
;
do
if
[[
-d
$i
]]
;
then
pack_and_send
$i
else
...
...
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