config-gui.sh: Simplify root hash device prompt

If we're removing leading slashes anyway, don't complicate the prompt
with more requirements.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-06-30 12:45:06 -04:00
parent 33c2cfb9b1
commit 23a086dbf7
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -224,11 +224,11 @@ while true; do
if [ -n "$CURRENT_OPTION" ]; then
echo -e "The current list of directories to hash is $CURRENT_OPTION"
fi
echo -e "Enter the new list of directories separated by spaces, without any beginning forward slashes:"
echo -e "Enter the new list of directories separated by spaces:"
echo -e "(Press enter with the list empty to cancel)"
read -r NEW_CONFIG_ROOT_DIRLIST
# strip any leading forward slashes in case the user ignored us
# strip any leading forward slashes
NEW_CONFIG_ROOT_DIRLIST=$(echo $NEW_CONFIG_ROOT_DIRLIST | sed -e 's/^\///;s/ \// /g')
#check if list empty