Script creates keys directory with wrong ownership when run with sudo
Steps to reproduce
First I created a fresh VM on GCP
Then I logged into it with gcloud ssh
And then I downloaded universal.sh from the v5.1.0 release
I ran sudo sh universal.sh and did a device install
When I tried to copy a key in ~/.atsign/keys I found that I couldn't as it was owned by root:root, so I had to do sudo chown -R ubuntu:ubuntu ~/.atsign
Expected behavior
Ownership to user
Additional context
This got missed in testing as I was using VM snapshops with atKeys already in place
Describe the bug
Script creates keys directory with wrong ownership when run with sudo
Steps to reproduce
gcloud ssh
sudo sh universal.sh
and did a device installsudo chown -R ubuntu:ubuntu ~/.atsign
Expected behavior
Ownership to user
Additional context
This got missed in testing as I was using VM snapshops with atKeys already in place