diff --git a/release/doFS.sh b/release/doFS.sh index 4548bd589c28..eade2d10ee12 100644 --- a/release/doFS.sh +++ b/release/doFS.sh @@ -15,7 +15,7 @@ do rm -f fs-image if [ ! -b /dev/${VNDEVICE} -o ! -c /dev/r${VNDEVICE} ] ; then - cd /dev && sh MAKEDEV ${VNDEVICE} + ( cd /dev && sh MAKEDEV ${VNDEVICE} ) fi umount /dev/${VNDEVICE} 2>/dev/null || true diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh index 4548bd589c28..eade2d10ee12 100644 --- a/release/scripts/doFS.sh +++ b/release/scripts/doFS.sh @@ -15,7 +15,7 @@ do rm -f fs-image if [ ! -b /dev/${VNDEVICE} -o ! -c /dev/r${VNDEVICE} ] ; then - cd /dev && sh MAKEDEV ${VNDEVICE} + ( cd /dev && sh MAKEDEV ${VNDEVICE} ) fi umount /dev/${VNDEVICE} 2>/dev/null || true