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

Cleanup using $DATE #2452

Merged
merged 6 commits into from Jul 6, 2020
Merged

Cleanup using $DATE #2452

merged 6 commits into from Jul 6, 2020

Conversation

jsmeix
Copy link
Member

@jsmeix jsmeix commented Jul 3, 2020

Replacing somewhat obscure $DATE usage
with fixed and consistent variables.

Replacing somewhat obscure $DATE usage
with fixed and consistent variables.
@jsmeix jsmeix added enhancement Adaptions and new features cleanup labels Jul 3, 2020
@jsmeix jsmeix added this to the ReaR v2.7 milestone Jul 3, 2020
@jsmeix jsmeix self-assigned this Jul 3, 2020
Use $START_DATE_TIME_NUMBER instead of $DATE
Use $START_DATE_TIME_NUMBER instead of $DATE
Replace $STARTTIME usage with $START_SECONDS usage
Removed setting STARTTIME because its only usage in framework-functions.sh
was replace with using $START_SECONDS instead, cf.
b35cbbc
@jsmeix jsmeix requested a review from a team July 3, 2020 13:30
@jsmeix
Copy link
Member Author

jsmeix commented Jul 3, 2020

I dislike meaningless variable names so much that I just needed to do this cleanup .
Now the upcoming weekend feels much more relaxed ;-)

Copy link
Member

@schlomo schlomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, didn't test it though.

usr/sbin/rear Show resolved Hide resolved
@jsmeix
Copy link
Member Author

jsmeix commented Jul 3, 2020

I have tested it quickly on my local system.

Better explanatory comment why one must not call the 'date' command several times
when one same point in time should be used for different date and time formats.
@jsmeix jsmeix merged commit 805e346 into master Jul 6, 2020
@jsmeix jsmeix deleted the jsmeix-cleanup-DATE-usage branch July 6, 2020 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants