Commit 858aefda authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Debug 2

parent e4545671
......@@ -46,7 +46,7 @@ fi
# Checking IRODS environment
if [[ ! -r ~/.irods/irodsA ]] ; then
if [[ ! -f ~/.irods/irodsA ]] ; then
log "The irods scrambled password file is not present. Please run iinit and provide the password"
exit 1
fi
......@@ -61,10 +61,10 @@ cd $SNAPSHOT_DIR
for dir in $(find . -maxdepth 3 -type d); do
IFS='/' read -r -a YNS <<< $dir
[ ! ${#distro[@]} -eq 3 ] && continue
YEAR=YNS[0]
NETWORK=YNS[1]
STATION=YNS[2]
[ ! ${#YNS[@]} -eq 3 ] && continue
YEAR=${YNS[0]}
NETWORK=${YNS[1]}
STATION=${YNS[2]}
KEY=$YEAR_$NETWORK_$STATION
log "Going to tar data from $KEY"
tar cf $RESIFDD_WORKDIR/$KEY.tar $dir
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment