This commit is contained in:
caes 2017-06-26 04:31:07 -04:00
parent a6634e492d
commit 25c3d21bff

View File

@ -14,11 +14,11 @@ bin_dir="$script_dir/../bin"
griddir=$1 griddir=$1
grid_id=$(echo ${griddir}|sed 's@^\.\/\(.*\)@\1@'|sed 's@.grids@@'|sed 's@\/@.@g') grid_id=$(echo ${griddir}|sed 's@^\.\/\(.*\)@\1@'|sed 's@.grids@@'|sed 's@\/@.@g')
if [[ -e "${grid_id}.tar.gz" ]]; then if [[ -e "fortfiles_${grid_id}.tar.gz" ]]; then
echo "package exists" echo "package exists"
exit 5 exit 5
else else
echo "${grid_id}.tar.gz Doesn't exist." echo "fortfiles_${grid_id}.tar.gz Doesn't exist."
fi fi
cd $griddir cd $griddir