Use current path prefix to find Python script files to modify

When using pacman to install packages, the --root option can be set to
install them to an alternative location. The current install scripts
don't take this in to account which causes no such file or directory
errors. This modifies the sed command to use the full prefix path
when renaming the shebang.

Signed-off-by: Dan Yeaw <dan@yeaw.me>
This commit is contained in:
Dan Yeaw committed 2019-03-27 13:02:27 -04:00
1 parent 5f3aa3babe
commit fddd9ee6c6
246 files changed
+270 -270

No files matched your search

@@ -5,7 +5,7 @@ post_install() {
local _it
for _it in sqlformat; do
sed -e "s|/mingw32|${_prefix}|g" \
-i mingw32/bin/${_it}-script.py
-i ${_prefix}/bin/${_it}-script.py
done
}