projects
/
dev-env-setup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3a28da
)
coriolis2-chroot: Added optional argument for specifying chroot name
author
Andrey Miroshnikov
<andrey@technepisteme.xyz>
Thu, 7 Oct 2021 12:37:20 +0000
(13:37 +0100)
committer
Andrey Miroshnikov
<andrey@technepisteme.xyz>
Thu, 7 Oct 2021 12:37:20 +0000
(13:37 +0100)
coriolis2-chroot
patch
|
blob
|
history
diff --git
a/coriolis2-chroot
b/coriolis2-chroot
index af658d4cfd609389971ce99290903c72129f871d..1ba4e35ee7fdb9802d1a5a8feda234a711dc8ee3 100755
(executable)
--- a/
coriolis2-chroot
+++ b/
coriolis2-chroot
@@
-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