diff options
author | Marc Cornellà <marc.cornella@live.com> | 2019-04-08 22:19:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 22:19:25 +0200 |
commit | 0c000af72162a5bd5147e8eedd25e810619f6c6f (patch) | |
tree | c90dcd837915bcee5e68f1319629616ee0d0f84d | |
parent | 482587ccc16da0a399f3f91ef4d29def8d22a441 (diff) | |
download | zsh-0c000af72162a5bd5147e8eedd25e810619f6c6f.tar.gz zsh-0c000af72162a5bd5147e8eedd25e810619f6c6f.tar.bz2 zsh-0c000af72162a5bd5147e8eedd25e810619f6c6f.zip |
cloudapp: fix permissions of credentials file
Fixes #4151
-rw-r--r-- | plugins/cloudapp/cloudapp.plugin.zsh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/cloudapp/cloudapp.plugin.zsh b/plugins/cloudapp/cloudapp.plugin.zsh index 99252f690..3b363c81b 100644 --- a/plugins/cloudapp/cloudapp.plugin.zsh +++ b/plugins/cloudapp/cloudapp.plugin.zsh @@ -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 |