Skip to content

Commit 49ba53f

Browse files
Address lint issues
1 parent e109669 commit 49ba53f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

parm/globus/init_xfer.sh.j2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ if [[ ${diff_d} -gt 3 ]]; then
5757
echo "WARNING the {{SERVER_NAME}} service for {{PSLOT}} has not run in > 3 days!"
5858
echo "Turning off the crontab for {{PSLOT}}!!"
5959
scriptpath="$( realpath "${0}" )"
60-
entry=$(crontab -l | grep -i "${scriptpath}")
60+
cron_out=$(crontab -l)
61+
entry=$(crontab -l | grep "${scriptpath}")
6162
echo "Deleting crontab entry"
6263
echo "${entry}"
63-
crontab -l | grep -v "${scriptpath}" | crontab -
64+
cron_in=$(echo "${cron_out}" | grep -v "${scriptpath}")
65+
echo "${cron_in}" | crontab -l
6466
fi

parm/globus/run_doorman.sh.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ fi
5858
set -e
5959

6060
# Parse the FLIST file created by receive.sh to get the transfer IDs
61+
packages=$(grep "package_location" FLIST)
6162
IDs=""
6263
while IFS= read -r line; do
6364
package_name=$(echo "${line}" | grep -o "package_location_.*\.tgz")
6465
tmp="${package_name#package_location_}"
6566
ID="${tmp%.tgz}"
6667
IDs="${IDs} ${ID}"
67-
done < <(grep "package_location" FLIST)
68+
done < <"(echo ${packages})"
6869

6970
set +e
7071

0 commit comments

Comments
 (0)