mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
Use perl to resolve symlinks
This commit is contained in:
parent
10d2eb7744
commit
f99966bbe6
|
@ -2,7 +2,7 @@
|
|||
|
||||
# The least terrible way to resolve a symlink to its real path.
|
||||
function realpath() {
|
||||
/usr/bin/python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0";
|
||||
/usr/bin/perl -e "use Cwd;print Cwd::abs_path(@ARGV[0])" "$0";
|
||||
}
|
||||
|
||||
CONTENTS="$(dirname "$(dirname "$(dirname "$(dirname "$(realpath "$0")")")")")"
|
||||
|
|
Loading…
Reference in a new issue