diff options
author | 2017-02-19 17:18:54 +0100 | |
---|---|---|
committer | 2017-02-19 17:19:22 +0100 | |
commit | 526322622241c01c78d26df9fe89a6f1e8ad41b8 (patch) | |
tree | 880fbbdf9f6d397638fc4783d91c601ead69e4b1 | |
parent | Extract variables ${EMERGE} and ${GLSA_CHECK} for testability (diff) | |
download | porticron-526322622241c01c78d26df9fe89a6f1e8ad41b8.tar.gz porticron-526322622241c01c78d26df9fe89a6f1e8ad41b8.tar.bz2 porticron-526322622241c01c78d26df9fe89a6f1e8ad41b8.zip |
Allow overriding ${DATE} for testibility
-rwxr-xr-x | bin/porticron | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/porticron b/bin/porticron index 9597456..844f6ce 100755 --- a/bin/porticron +++ b/bin/porticron @@ -117,7 +117,7 @@ SCRIPT_NAME=$(basename $0) FQDN=$(hostname --fqdn) HOST=$(hostname -s) IP=$(dig +short ${FQDN} | tr '\n' ' ') -DATE=$(date -R) +: ${DATE:=$(date -R)} PORTDIR=$(portageq get_repo_path $(portageq envvar EROOT) gentoo) # defaults, second half |