Skip to content

Commit 35fbc00

Browse files
committed
Fix for windows-style path
1 parent b039809 commit 35fbc00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pgpro-upgrade/pgpro_upgrade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ PGBIN="`echo $0|sed 's![^/\\]*$!!'`"
1111
echo "$PGBIN"
1212

1313
case "$PGBIN" in
14-
*/bin/)
15-
PGSHARE="`echo $PGBIN|sed 's!bin/$!share!'`"
14+
*/bin/|*\\bin\\)
15+
PGSHARE="`echo $PGBIN|sed 's!bin.$!share!'`"
1616
;;
1717
*) PGBIN=""
1818
PGSHARE=""

0 commit comments

Comments
 (0)