Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
datadump
Commits
ef822dd5
Commit
ef822dd5
authored
Jul 10, 2019
by
Jonathan Schaeffer
Browse files
Selection du snapshot
parent
6f1d1f8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resifdatadump
View file @
ef822dd5
...
...
@@ -139,7 +139,7 @@ fi
# Get the snapshot name for this month
MONTH
=
$(
date
+%Y-%m
)
SNAPSHOT_DIR
=
$RESIFDD_DATADIR
/validated_seismic_seismic_metadata/.snapshot/monthly.
${
MONTH
}
-01_0000
SNAPSHOT_DIR
=
$(
ls
-d
$RESIFDD_DATADIR
/validated_seismic_seismic_metadata/.snapshot/monthly.
${
MONTH
}
*
|tail
-1
)
if
[[
!
-d
$SNAPSHOT_DIR
]]
;
then
echo
"Error 000 Snapshot directory
$SNAPSHOT_DIR
does not exist"
exit
1
...
...
@@ -167,7 +167,7 @@ ils -l $KEY
#
####################
SNAPSHOT_DIR
=
"
${
RESIFDD_DATADIR
}
/validated_seismic_data/.snapshot/monthly.
${
MONTH
}
-01_0000"
SNAPSHOT_DIR
=
$(
ls
-d
${
RESIFDD_DATADIR
}
/validated_seismic_data/.snapshot/monthly.
${
MONTH
}
*
|tail
-1
)
if
[[
!
-d
$SNAPSHOT_DIR
]]
;
then
echo
"Error 006 Snapshot directory
$SNAPSHOT_DIR
does not exist"
exit
1
...
...
Write
Preview
Markdown
is supported
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