ensure .ssh dir exists

Fixes #349
This commit is contained in:
Girish Ramakrishnan
2017-06-07 09:50:31 -07:00
parent 96d2b32a9f
commit c0c07c2839
+3
View File
@@ -24,6 +24,9 @@ if [[ $# -lt 3 ]]; then
fi
if [[ -f "$2" ]]; then
# on some vanilla ubuntu installs, the .ssh directory does not exist
mkdir -p "$(dirname $3)"
cp "$2" "$3"
chown "$1":"$1" "$3"
fi