Skip to content

Commit

Permalink
removed cheyenne-specific crontab editing section (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-a-potts authored May 19, 2022
1 parent 737c687 commit fe820b0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ush/get_crontab_contents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ function get_crontab_contents() {
__crontab_contents__=$( ${__crontab_cmd__} -l )
fi
#
# On Cheyenne, the output of the "crontab -l" command contains a 3-line
# header (comments) at the top that is not actually part of the user's
# cron table. This needs to be removed to avoid adding an unnecessary
# copy of this header to the user's cron table.
#
if [ "$MACHINE" = "CHEYENNE" ]; then
__crontab_contents__=$( printf "%s" "${__crontab_contents__}" | tail -n +4 )
fi
#
# Set output variables.
#
printf -v ${outvarname_crontab_cmd} "%s" "${__crontab_cmd__}"
Expand Down

0 comments on commit fe820b0

Please sign in to comment.