diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-12-04 10:04:14 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-12-04 10:04:14 -0500 |
commit | 75d991b2e807d8bf26a2b94791870b86c43a1c96 (patch) | |
tree | 7462c64e6cde216b1714844465d2f8ab26b19d1c /tools | |
parent | 81ea305461777d5e5bec9f92a0b14c544aa6fd1e (diff) | |
download | vyos-cloud-init-75d991b2e807d8bf26a2b94791870b86c43a1c96.tar.gz vyos-cloud-init-75d991b2e807d8bf26a2b94791870b86c43a1c96.zip |
replace if..else based on presense of /etc/redhat-release with use of -s
instead of using '--stderr' on non-rhel based on the presense of
/etc/redhat-release, just use the short form '-s' everywhere.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/write-ssh-key-fingerprints | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/write-ssh-key-fingerprints b/tools/write-ssh-key-fingerprints index d69c7fcc..6c3451fd 100755 --- a/tools/write-ssh-key-fingerprints +++ b/tools/write-ssh-key-fingerprints @@ -2,13 +2,9 @@ logger_opts="-p user.info -t ec2" -if [ -f "/etc/redhat-release" ] -then - # Seems like rhel only supports the short version - logger_opts="$logger_opts -s" -else - logger_opts="$logger_opts --stderr" -fi +# rhels' version of logger_opts does not support long +# for of -s (--stderr), so use short form. +logger_opts="$logger_opts -s" # Redirect stderr to stdout exec 2>&1 |