mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-25 18:51:27 +00:00
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:
parent
33c2cfb9b1
commit
23a086dbf7
@ -224,11 +224,11 @@ while true; do
|
|||||||
if [ -n "$CURRENT_OPTION" ]; then
|
if [ -n "$CURRENT_OPTION" ]; then
|
||||||
echo -e "The current list of directories to hash is $CURRENT_OPTION"
|
echo -e "The current list of directories to hash is $CURRENT_OPTION"
|
||||||
fi
|
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)"
|
echo -e "(Press enter with the list empty to cancel)"
|
||||||
read -r NEW_CONFIG_ROOT_DIRLIST
|
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')
|
NEW_CONFIG_ROOT_DIRLIST=$(echo $NEW_CONFIG_ROOT_DIRLIST | sed -e 's/^\///;s/ \// /g')
|
||||||
|
|
||||||
#check if list empty
|
#check if list empty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user