Commit 7ff017ba authored by Chaoting Liu's avatar Chaoting Liu 😖

make_chroot.sh: read -> read -r as per suggest by man page

- r as in restriected mode, do not treat a backslash character in any special way
- have little to none impact on the script, but enhance a bit the security flaw
parent 588156ec
......@@ -212,7 +212,7 @@ configure_buildscripts() {
fi
if [ ! -r "$(pwd)/$chakrafolder/user.conf" ] ; then
msg "Enter your ssh username:"
read ssh_user
read -r ssh_user
touch "$(pwd)/$chakrafolder/user.conf"
echo "_ssh_user=${ssh_user}" >> "$(pwd)/$chakrafolder/user.conf"
echo "_ssh_port=${ssh_port}" >> "$(pwd)/$chakrafolder/user.conf"
......@@ -335,7 +335,7 @@ warning "Chroot Installation : $chroot_dir"
newline
while true ; do
question "Do you want to continue? [Y/n] "
read YN
read -r YN
case $YN in
""|[yY] ) break ;;
[nN] )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment