From 5442672390e63971ee79bf93195d727fdcf9e3e3 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Jun 15 2016 18:23:44 +0000 Subject: Use /proc/cygdrive instead of changing the cygdrive prefix in midipix.sh. (via Elieux.) --- diff --git a/midipix.sh b/midipix.sh index 9a07417..e4879b9 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;