Skip to content

Commit 5c456c2

Browse files
Update Get_CRTM_Binary_Files.sh
fixing Get_CRTM_Binary_Files to move correct directory in `release/crtm_jedi_v2.4.1`
1 parent bb7adbf commit 5c456c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Get_CRTM_Binary_Files.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#foldername="fix_REL-2.4.0" #rel 2.4.0 files
2-
foldername="fix_REL-2.4.1_latest"
2+
foldername="fix_REL-2.4.1_20221109"
3+
filename="fix_REL-2.4.1_latest.tgz"
34

4-
filename="${foldername}.tgz"
55
if test -f "$filename"; then
66
if [ -d "fix/" ]; then #fix directory exists
77
echo "fix/ already exists, doing nothing."
88
else
99
#untar the file and move directory to fix
1010
tar -zxvf $filename
11-
mv $foldername fix
11+
mv $foldername/fix ./fix
1212
echo "fix/ directory created from existing $filename file."
1313
fi
1414
else
1515
#download, untar, move
1616
echo "downloading $filename, please wait about 5 minutes (3.3 GB tar file)"
1717
wget -q ftp://ftp.ssec.wisc.edu/pub/s4/CRTM/$filename # CRTM binary files
1818
tar -zxvf $filename
19-
mv $foldername fix
19+
mv $foldername/fix ./fix
2020
echo "fix/ directory created from downloaded $filename."
2121
fi
2222
echo "Completed."

0 commit comments

Comments
 (0)