summarylogtreecommitdiffstats
path: root/fix_symlink_path.patch
blob: 2f6a68ce9cb58294a39e3a78be36f462a228b8cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur 4kvideodownloader.orig/4kvideodownloader.sh 4kvideodownloader/4kvideodownloader.sh
--- 4kvideodownloader.orig/4kvideodownloader.sh	2019-11-29 14:29:11.000000000 +0100
+++ 4kvideodownloader/4kvideodownloader.sh	2019-12-02 15:56:55.198273114 +0100
@@ -1,7 +1,6 @@
 #!/bin/sh
 
-SCRIPT_DIR=$(dirname "$0")
-SCRIPT_DIR=`cd "$SCRIPT_DIR"; pwd` #make path absolute
+SCRIPT_DIR=$(dirname $(readlink -f "$0"))
 
 LD_LIBRARY_PATH=$SCRIPT_DIR
 export LD_LIBRARY_PATH