markchalloner / git-semver

Git plugin for Semantic Versioning
MIT License
381 stars 43 forks source link

new install, update script, Permission denied #19

Closed zeroasterisk closed 6 years ago

zeroasterisk commented 7 years ago
$ git semver get
/Users/alan/bin/git-semver: line 165: /Users/alan/.git-semver/update: Permission denied
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]

$ ll ~/.git-semver
total 4.0K
-rw-r--r-- 1 root staff 185 Feb 20 12:43 config
zeroasterisk commented 7 years ago

fixed by doing

sudo chown -R `whoami` ~/.git-semver/
touch ~/.git-semver/update

Leaving issue open for you to fix installation script to handle this (I think it's the sudo install script, not setting user perms on home dir folder)

markchalloner commented 7 years ago

@zeroasterisk. Thanks for the report.