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
57
57
echo " WARNING the {{SERVER_NAME}} service for {{PSLOT}} has not run in > 3 days!"
58
58
echo " Turning off the crontab for {{PSLOT}}!!"
59
59
scriptpath=" $( realpath " ${0} " ) "
60
- entry=$( crontab -l | grep -i " ${scriptpath} " )
60
+ cron_out=$( crontab -l)
61
+ entry=$( crontab -l | grep " ${scriptpath} " )
61
62
echo " Deleting crontab entry"
62
63
echo " ${entry} "
63
- crontab -l | grep -v " ${scriptpath} " | crontab -
64
+ cron_in=$( echo " ${cron_out} " | grep -v " ${scriptpath} " )
65
+ echo " ${cron_in} " | crontab -l
64
66
fi
Original file line number Diff line number Diff line change 58
58
set -e
59
59
60
60
# Parse the FLIST file created by receive.sh to get the transfer IDs
61
+ packages=$( grep " package_location" FLIST)
61
62
IDs=" "
62
63
while IFS= read -r line; do
63
64
package_name=$( echo " ${line} " | grep -o " package_location_.*\.tgz" )
64
65
tmp=" ${package_name# package_location_} "
65
66
ID=" ${tmp% .tgz} "
66
67
IDs=" ${IDs} ${ID} "
67
- done < <( grep " package_location " FLIST )
68
+ done < < " (echo ${packages} ) "
68
69
69
70
set +e
70
71
You can’t perform that action at this time.
0 commit comments