Fix detect zero list entries (pwsh-vault)
This commit is contained in:
parent
e4a46a5e7c
commit
b4c294cd8e
|
@ -692,12 +692,16 @@ function list_entries_vault() {
|
||||||
list_bcard_count=$(ls -1 bcard/ | wc -l)
|
list_bcard_count=$(ls -1 bcard/ | wc -l)
|
||||||
list_notes_count=$(ls -1 notes/ | wc -l)
|
list_notes_count=$(ls -1 notes/ | wc -l)
|
||||||
total_count_vaults=$(expr ${list_logins_count} + ${list_bcard_count} + ${list_notes_count})
|
total_count_vaults=$(expr ${list_logins_count} + ${list_bcard_count} + ${list_notes_count})
|
||||||
|
if [ ${total_count_vaults} -eq 0 ] ; then
|
||||||
|
echo > /dev/null | pwsh-vaultm -p " No Entries to Show $(generate_spaces 70)"
|
||||||
|
else
|
||||||
echo ""
|
echo ""
|
||||||
echo "# pwsh-vault ${VERSION}"
|
echo "# pwsh-vault ${VERSION}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "# Creating Vault List Entries"
|
echo "# Creating Vault List Entries"
|
||||||
echo ""
|
echo ""
|
||||||
run_all_list_process_extracted_vault | pwsh-vaultm -p " List Entries (${total_count_vaults}):"
|
run_all_list_process_extracted_vault | pwsh-vaultm -p " List Entries (${total_count_vaults}):"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function change_masterkey_vault() {
|
function change_masterkey_vault() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user