Skip to content

Commit

Permalink
Fixed shellcheck directive. Address linter errors. NOAA-EMC#138
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Sep 19, 2022
1 parent fbc7171 commit e49ecf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions sorc/link_workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ if [ $# -lt 2 ]; then
exit 1
fi

if [ $RUN_ENVIR != emc && $RUN_ENVIR != nco ]; then
if [[ $RUN_ENVIR != emc && $RUN_ENVIR != nco ]]; then
echo ' Syntax: link_workflow.sh ( nco | emc ) ( wcoss2 | hera | orion | jet | stampede | s4 )'
exit 1
fi
if [ $machine != wcoss2 && $machine != hera && $machine != orion && $machine != jet && $machine != stampede && $machine != s4 ]; then
if [[ $machine != wcoss2 && $machine != hera && $machine != orion && $machine != jet && $machine != stampede && $machine != s4 ]]; then
echo ' Syntax: link_workflow.sh ( nco | emc ) ( wcoss2 | hera | orion | jet | stampede | s4 )'
exit 1
fi
Expand Down Expand Up @@ -357,7 +357,7 @@ cd ${pwd}/../sorc || exit 8
done


if [ -d ${pwd}/gfs_wafs.fd ]; then
if [ -d "${pwd}/gfs_wafs.fd" ]; then
$SLINK gfs_wafs.fd/sorc/wafs_awc_wafavn.fd wafs_awc_wafavn.fd
$SLINK gfs_wafs.fd/sorc/wafs_blending.fd wafs_blending.fd
$SLINK gfs_wafs.fd/sorc/wafs_blending_0p25.fd wafs_blending_0p25.fd
Expand All @@ -378,7 +378,7 @@ cd ${pwd}/../sorc || exit 8
#------------------------------
# copy $HOMEgfs/parm/config/config.base.nco.static as config.base for operations
# config.base in the $HOMEgfs/parm/config has no use in development
cd ${pwd}/../parm/config
cd "${pwd}/../parm/config"
[[ -s config.base ]] && rm -f config.base
[[ ${RUN_ENVIR} = nco ]] && cp -p config.base.nco.static config.base
#------------------------------
Expand Down
2 changes: 1 addition & 1 deletion sorc/machine-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ elif [[ -d /lfs3 ]] ; then
echo load the module command 1>&2
# shellcheck disable=SC1090
source /apps/lmod/lmod/init/$__ms_shell
# shellcheck disable=
# shellcheck enable=SC1090
fi
target=jet
module purge
Expand Down

0 comments on commit e49ecf1

Please sign in to comment.