Return to remove menu when remove entry
This commit is contained in:
parent
e92995a90a
commit
fd8f6229d2
|
@ -851,7 +851,7 @@ function remove_entry_vault() {
|
||||||
if [ ${count_total} -ne 0 ] ; then
|
if [ ${count_total} -ne 0 ] ; then
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
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
|
if [ -z "${vault_remove_entry}" ] ; then
|
||||||
echo "# Canceled Remove Entry"
|
echo "# Canceled Remove Entry"
|
||||||
else
|
else
|
||||||
|
@ -865,12 +865,16 @@ function remove_entry_vault() {
|
||||||
echo "# Entry ${vault_remove_entry} Removed"
|
echo "# Entry ${vault_remove_entry} Removed"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "# Press enter key to continue " ; read enter_continue
|
echo -n "# Press enter key to continue " ; read enter_continue
|
||||||
|
remove_entry_vault
|
||||||
|
else
|
||||||
|
remove_entry_vault
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
echo "# Entry ${vault_remove_entry} does no exist"
|
echo "# Entry ${vault_remove_entry} does no exist"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "# Press enter key to continue " ; read enter_continue
|
echo -n "# Press enter key to continue " ; read enter_continue
|
||||||
|
remove_entry_vault
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -1042,9 +1042,13 @@ function remove_entry_vault() {
|
||||||
if [ "${are_you_sure}" == "Yes" ] ; then
|
if [ "${are_you_sure}" == "Yes" ] ; then
|
||||||
rm -rf "${pwsh_vault}/${vault_remove_entry}"
|
rm -rf "${pwsh_vault}/${vault_remove_entry}"
|
||||||
echo > /dev/null | pwsh-vaultm -p " Entry ${vault_remove_entry} Removed $(generate_spaces 55)"
|
echo > /dev/null | pwsh-vaultm -p " Entry ${vault_remove_entry} Removed $(generate_spaces 55)"
|
||||||
|
remove_entry_vault
|
||||||
|
else
|
||||||
|
remove_entry_vault
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo > /dev/null | pwsh-vaultm -p " Entry ${vault_remove_entry} does no exist $(generate_spaces 55)"
|
echo > /dev/null | pwsh-vaultm -p " Entry ${vault_remove_entry} does no exist $(generate_spaces 55)"
|
||||||
|
remove_entry_vault
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user