summarylogtreecommitdiffstats
path: root/fix_symlink_path.patch
blob: 247cd938a91707a57cf8c053cc0a86db67d9d8ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur 4kvideotomp3.orig/4kvideotomp3.sh 4kvideotomp3/4kvideotomp3.sh
--- 4kvideotomp3.orig/4kvideotomp3.sh	2020-09-29 17:31:32.000000000 +0200
+++ 4kvideotomp3/4kvideotomp3.sh	2021-09-25 18:54:55.910973848 +0200
@@ -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