cloudapp: fix permissions of credentials file

Fixes #4151
This commit is contained in:
Marc Cornellà 2019-04-08 22:19:25 +02:00 committed by GitHub
parent 482587ccc1
commit 0c000af721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,6 @@
#!/bin/zsh
alias cloudapp=$ZSH/plugins/cloudapp/cloudapp.rb
alias cloudapp="${0:a:h}/cloudapp.rb"
# Ensure only the owner can access the credentials file
if [[ -f ~/.cloudapp ]]; then
chmod 600 ~/.cloudapp
fi