commit | bbd0753377707e17f8e568b1b0f96dfb40657a3f | [log] [tgz] |
---|---|---|
author | Ian McKellar <ianloic@google.com> | Thu Oct 26 16:00:31 2017 -0700 |
committer | Ian McKellar <ianloic@google.com> | Fri Oct 27 08:19:02 2017 -0700 |
tree | 1c0fb0fd213235f93a90db36e9d3a58a8d25512e | |
parent | 81b2230781c68af95d3a33ac9ce4d044336c30fc [diff] |
A fix for a build error The authorized_keys file may (for quite old out/ directories) be a symlink to the identity file. This cleans up authorized_keys before recreating it. Change-Id: Ibe70a2459370dfaf6d935156b5bc1872f1b5d586
diff --git a/fuchsia/developer-keys/concat_authorized_keys.sh b/fuchsia/developer-keys/concat_authorized_keys.sh index e21771a..b23dd43 100755 --- a/fuchsia/developer-keys/concat_authorized_keys.sh +++ b/fuchsia/developer-keys/concat_authorized_keys.sh
@@ -7,4 +7,6 @@ exit 1 fi -cat "${@:2}" > $1 +rm -f "$1" + +cat "${@:2}" > "$1"