Fix correct commit hash for release 0.7.0 of openXC7
[dev-env-setup.git] / coriolis2-chroot
index af658d4cfd609389971ce99290903c72129f871d..1ba4e35ee7fdb9802d1a5a8feda234a711dc8ee3 100755 (executable)
@@ -10,6 +10,14 @@ NC='\033[0m'
 # Default name for the new chroot
 chroot_name="coriolis"
 
+# Check if default chroot name should be used or not
+if [ -z $1 ]; then
+    echo "Not provided a chroot name, using default chroot \"$chroot_name\""
+else
+       chroot_name="$1"
+       echo "Using specified chroot name \"$chroot_name\""
+fi
+
 if [ -e /opt/chroot/$chroot_name ]; then
     echo -e "
 ${RED}Chroot \"$chroot_name\" exists! Delete with \"rm-deb-chroot\" or