File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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
6466fi
Original file line number Diff line number Diff line change 5858set -e
5959
6060# Parse the FLIST file created by receive.sh to get the transfer IDs
61+ packages=$( grep " package_location" FLIST)
6162IDs=" "
6263while 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
6970set +e
7071
You can’t perform that action at this time.
0 commit comments