From a9b9058deb9eabce009230e890c7e697c3a76f74 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 31 Mar 2023 18:40:26 +0200 Subject: [PATCH 1/2] Error out when striping the password fails --- bashpass-remote | 1 + 1 file changed, 1 insertion(+) diff --git a/bashpass-remote b/bashpass-remote index b560a7f..d0c0406 100755 --- a/bashpass-remote +++ b/bashpass-remote @@ -127,6 +127,7 @@ copy() { password=$(ssh -t "${user}@${host}" '$(command -v bashpass) --show' "${1}") || \ error_out "failed to retrieve password '${1}' from remote" 1 password=${password#*: } + [[ -z "${password}" ]] && error_out "failed to strip password '${1}' from remote response" 1 if [[ "${1}" ]]; then if printf '%s' "${password}" | "${clipboard_command}"; then From b8f336d2132b6e5a3bfa0307b4170836c73503ed Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 2 Jan 2024 11:35:36 +0100 Subject: [PATCH 2/2] Happy 2024! --- LICENSE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 71056e7..89f4d44 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 Anton Van Assche +Copyright (c) 2023-2024 Anton Van Assche Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal