Changeset 59328d0 in mod_gnutls


Ignore:
Timestamp:
Oct 4, 2020, 6:27:19 AM (10 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
asyncio, master
Children:
895c9e4
Parents:
1b07bd1
Message:

newtest: Style cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/newtest

    r1b07bd1 r59328d0  
    55confirmed=0
    66
    7 while [ "$confirmed" -eq 0 ]; do
    8     read -e -p "describe your new test briefly: " -i "${tname}" TEST_NAME
     7while [ "${confirmed}" -eq 0 ]; do
     8    read -e -p "Describe your new test briefly: " -i "${tname}" TEST_NAME
    99    tname="${TEST_NAME// /_}"
    1010
     
    1313        newnum=$((newnum + 1))
    1414    done
    15     newname="$(printf "%02d_%s" "${newnum}" "$tname")"
     15    newname="$(printf "%02d_%s" "${newnum}" "${tname}")"
    1616
    17     read -p "your new test will be named tests/$newname. OK? [Y/n]"
    18     if [ "$REPLY" == "" ] || [ "${REPLY/Y/y}" == "y" ]; then
     17    read -p "Your new test will be named tests/$newname. OK? [Y/n]"
     18    if [ -z "${REPLY}" ] || [ "${REPLY,}" == "y" ]; then
    1919        confirmed=1
    2020    fi
    2121done
    2222
    23 cp -a tests/00_basic "tests/$newname"
     23cp -a tests/00_basic "tests/${newname}"
    2424# derive script name, the actual script will be generated by make
    2525newscript="test-${newname}.bash"
Note: See TracChangeset for help on using the changeset viewer.