Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed cheyenne-specific crontab editing section #773

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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