Add missing patch in previous commit
This commit is contained in:
parent
69d0d0d04e
commit
38481e18bc
27
devel/pycharm/patches/patch-bin_pycharm_sh
Normal file
27
devel/pycharm/patches/patch-bin_pycharm_sh
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-bin_pycharm_sh,v 1.4 2021/10/11 05:12:07 rsadowski Exp $
|
||||
|
||||
Index: bin/pycharm.sh
|
||||
--- bin/pycharm.sh.orig
|
||||
+++ bin/pycharm.sh
|
||||
@@ -21,10 +21,10 @@ message()
|
||||
fi
|
||||
}
|
||||
|
||||
-if [ -z "$(command -v uname)" ] || [ -z "$(command -v realpath)" ] || [ -z "$(command -v dirname)" ] || [ -z "$(command -v cat)" ] || \
|
||||
+if [ -z "$(command -v uname)" ] || [ -z "$(command -v readlink)" ] || [ -z "$(command -v dirname)" ] || [ -z "$(command -v cat)" ] || \
|
||||
[ -z "$(command -v egrep)" ]; then
|
||||
TOOLS_MSG="Required tools are missing:"
|
||||
- for tool in uname realpath egrep dirname cat ; do
|
||||
+ for tool in uname readlink egrep dirname cat ; do
|
||||
test -z "$(command -v $tool)" && TOOLS_MSG="$TOOLS_MSG $tool"
|
||||
done
|
||||
message "$TOOLS_MSG (SHELL=$SHELL PATH=$PATH)"
|
||||
@@ -39,7 +39,7 @@ OS_ARCH=$(uname -m)
|
||||
# ---------------------------------------------------------------------
|
||||
# Ensure $IDE_HOME points to the directory where the IDE is installed.
|
||||
# ---------------------------------------------------------------------
|
||||
-IDE_BIN_HOME=$(dirname "$(realpath "$0")")
|
||||
+IDE_BIN_HOME=$(dirname "$(readlink -f "$0")")
|
||||
IDE_HOME=$(dirname "${IDE_BIN_HOME}")
|
||||
CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user