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 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