-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing to ballot.yml
fails with a permission denied error
#3
Comments
Running with $ sudo sh ./voteUsingGit.sh \
RaisinTen \
git@github.com:nodejs/TSC.git \
vote-primordials-error-path \
votes/primordials-error-path
Password:
Cloning into '.'...
The authenticity of host 'github.com (13.234.210.38)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
remote: Enumerating objects: 305, done.
remote: Counting objects: 100% (305/305), done.
remote: Compressing objects: 100% (295/295), done.
remote: Total 305 (delta 12), reused 163 (delta 7), pack-reused 0
Receiving objects: 100% (305/305), 2.23 MiB | 2.41 MiB/s, done.
Resolving deltas: 100% (12/12), done.
./voteUsingGit.sh: line 20: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.u1UoIdLI/votes/primordials-error-path/ballot.yml: Permission denied
./voteUsingGit.sh: line 23: /Users/raisinten/Desktop/temp/project/sh/encryptBallot.sh: No such file or directory
On branch vote-primordials-error-path
Your branch is up to date with 'origin/vote-primordials-error-path'.
nothing to commit, working tree clean
Everything up-to-date |
Thanks for the report Looks like your The script should warn you about it, that should be taken care of with 414518e. |
To fix that, you can either define curl -LOJ https://github.com/stduhpf/caritat/raw/HEAD/sh/voteUsingGit.sh
curl -LOJ https://github.com/stduhpf/caritat/raw/HEAD/sh/encryptBallot.sh
chmod +x encryptBallot.sh
EDITOR=nano sh ./voteUsingGit.sh \
RaisinTen \
git@github.com:nodejs/TSC.git \
vote-primordials-error-path \
votes/primordials-error-path
rm encryptBallot.sh
rm voteUsingGit.sh |
System info:
$ uname -a Darwin Darshans-MacBook-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64 $ openssl version OpenSSL 3.0.1 14 Dec 2021 (Library: OpenSSL 3.0.1 14 Dec 2021)
Logs:
This ends up committing and pushing an empty file.
Workaround:
I believe running with
sudo
should be a temporary fix for now.The text was updated successfully, but these errors were encountered: