diff options
author | Matthew Waters <matthew@centricular.com> | 2019-11-27 17:09:07 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2019-11-27 17:10:08 +1100 |
commit | 7cec09c03f4ed214c3544466bec846434e5784e3 (patch) | |
tree | 19f20e676030ae7d139cbd05b2e33b707d202c1f /cerbero-uninstalled | |
parent | 66a4d9ad1ab0a5eff3cb8d190cce7cc2e5b3c0c9 (diff) |
cerbero: pass the scriptdir not the current dir
If cerbero-uninstalled was ever executed when not in the cerbero
directory, its execution would fail with:
Traceback (most recent call last):
File "<string>", line 19, in <module>
ModuleNotFoundError: No module named 'cerbero'
Diffstat (limited to 'cerbero-uninstalled')
-rwxr-xr-x | cerbero-uninstalled | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero-uninstalled b/cerbero-uninstalled index a125829d..f7c0eb72 100755 --- a/cerbero-uninstalled +++ b/cerbero-uninstalled @@ -26,7 +26,7 @@ native_pwd() { # Get the win32 PWD, instead of the Cygwin one pwd -W || echo $PWD else - echo $PWD + echo `dirname "$0"` fi } |