From 5442672390e63971ee79bf93195d727fdcf9e3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Wed, 15 Jun 2016 18:23:44 +0000 Subject: Use /proc/cygdrive instead of changing the cygdrive prefix in midipix.sh. (via Elieux.) --- midipix.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/midipix.sh b/midipix.sh index 9a074174..e4879b95 100755 --- a/midipix.sh +++ b/midipix.sh @@ -38,26 +38,15 @@ else cp /proc/cygdrive${MIDIPIX_PATH}/bin/libpsxscl.log \ /proc/cygdrive${MIDIPIX_PATH}/bin/libpsxscl.last || exit 5; fi; - OLD_CYGDRIVE_PREFIX="$(readlink /proc/cygdrive)" || exit 6; echo "Midipix drive letter.....: ${MIDIPIX_DRIVE}"; echo "Midipix pathname.........: ${MIDIPIX_PNAME}"; echo "Absolute Midipix pathname: ${MIDIPIX_PATH}"; - echo -------------------------------------------------------- - echo WARNING: The cygdrive path prefix will be changed to / - echo whilst the Midipix shell window is running. It will be - echo reset to its previous value of ${OLD_CYGDRIVE_PREFIX} after it exits. - echo -------------------------------------------------------- if [ "${UNAME_OS}" = "Msys" ]; then export MSYS2_ARG_CONV_EXCL="*"; fi; mintty -h always -e /bin/sh -c " set -o errexit; stty raw -echo; - mount --change-cygdrive-prefix /; cd ${MIDIPIX_PATH}/native/bin; - export PATH=${MIDIPIX_PATH}/native/bin:${MIDIPIX_PATH}/native/lib; + export PATH=/proc/cygdrive${MIDIPIX_PATH}/native/bin:/proc/cygdrive${MIDIPIX_PATH}/native/lib; ./ntctty.exe -e chroot //${MIDIPIX_PATH#/}/native /bin/bash"; - echo -------------------------------------------------------- - echo Resetting cygdrive path prefix to ${OLD_CYGDRIVE_PREFIX}. - echo -------------------------------------------------------- - mount --change-cygdrive-prefix "${OLD_CYGDRIVE_PREFIX}"; fi; -- cgit v1.2.3