Return to remove menu when remove entry

This commit is contained in:
q3aql 2022-06-12 12:01:14 +02:00
parent e92995a90a
commit fd8f6229d2
2 changed files with 9 additions and 1 deletions

View File

@ -851,7 +851,7 @@ function remove_entry_vault() {
if [ ${count_total} -ne 0 ] ; then
echo ""
fi
echo -n "# Type entry to remove (Default: return): " ; read vault_remove_entry
echo -n "# Type entry to remove (Default: Return): " ; read vault_remove_entry
if [ -z "${vault_remove_entry}" ] ; then
echo "# Canceled Remove Entry"
else
@ -865,12 +865,16 @@ function remove_entry_vault() {
echo "# Entry ${vault_remove_entry} Removed"
echo ""
echo -n "# Press enter key to continue " ; read enter_continue
remove_entry_vault
else
remove_entry_vault
fi
else
echo ""
echo "# Entry ${vault_remove_entry} does no exist"
echo ""
echo -n "# Press enter key to continue " ; read enter_continue
remove_entry_vault
fi
fi
}

View File

@ -1042,9 +1042,13 @@ function remove_entry_vault() {
if [ "${are_you_sure}" == "Yes" ] ; then
rm -rf "${pwsh_vault}/${vault_remove_entry}"
echo > /dev/null | pwsh-vaultm -p " Entry ${vault_remove_entry} Removed $(generate_spaces 55)"
remove_entry_vault
else
remove_entry_vault
fi
else
echo > /dev/null | pwsh-vaultm -p " Entry ${vault_remove_entry} does no exist $(generate_spaces 55)"
remove_entry_vault
fi
fi
}