diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 21:06:56 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-01 21:06:56 +0300 |
commit | 10a624a7e059400253850b1efa714bdca5d346a0 (patch) | |
tree | 480ea88473348702110eed7799c54989f1892189 /makeself/install-or-update.sh | |
parent | b9bd846814b337020508c8f4dbac12112bc25859 (diff) |
show full directory on relative commands
Diffstat (limited to 'makeself/install-or-update.sh')
-rwxr-xr-x | makeself/install-or-update.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/makeself/install-or-update.sh b/makeself/install-or-update.sh index 1029ce376a..102aba03cd 100755 --- a/makeself/install-or-update.sh +++ b/makeself/install-or-update.sh @@ -118,7 +118,7 @@ progress "creating quick links" dir_should_be_link() { local p="${1}" t="${2}" d="${3}" old - old="$(pwd)" + old="${PWD}" cd "${p}" || return 0 if [ -e "${d}" ] @@ -151,9 +151,9 @@ dir_should_be_link . var/log/netdata netdata-logs # ----------------------------------------------------------------------------- progress "fix permissions" -chmod g+rx,o+rx /opt -chmod g+rx,o+rx /opt/netdata -chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata +run chmod g+rx,o+rx /opt +run chmod g+rx,o+rx /opt/netdata +run chown -R ${NETDATA_USER}:${NETDATA_GROUP} /opt/netdata # ----------------------------------------------------------------------------- |