Better error message when base64 is not found

This commit is contained in:
Kovid Goyal 2022-03-07 18:12:01 +05:30
parent c9071a66ca
commit f20ad7df01
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -90,8 +90,11 @@ leading_data=""
login_cwd=""
init_tty && trap "cleanup_on_bootstrap_exit" EXIT
[ "$tty_ok" = "y" ] && dcs_to_kitty "ssh" "id="REQUEST_ID":hostname="$hostname":pwfile="PASSWORD_FILENAME":user="$USER":pw="DATA_PASSWORD""
if [ "$tty_ok" = "y" ]; then
command -v base64 > /dev/null 2> /dev/null || die "base64 executable not present on remote host, ssh kitten cannot function. You can try using --kitten interpreter=python if python is available."
dcs_to_kitty "ssh" "id="REQUEST_ID":hostname="$hostname":pwfile="PASSWORD_FILENAME":user="$USER":pw="DATA_PASSWORD""
record_separator=$(printf "\036")
fi
mv_files_and_dirs() {
cwd="$PWD"