diff options
author | Baptiste Jonglez <git@bitsofnetworks.org> | 2022-12-06 23:13:32 +0100 |
---|---|---|
committer | Baptiste Jonglez <git@bitsofnetworks.org> | 2022-12-06 23:13:32 +0100 |
commit | c9bcfb5e46be68fce56e2612b4bbf75508e1e814 (patch) | |
tree | 2563146ed272f9078147f95af0c77aac239d2b53 /sshtool | |
parent | 5bed1e66db575795e5241f21a72ab3ff51320090 (diff) | |
download | nixcfg-c9bcfb5e46be68fce56e2612b4bbf75508e1e814.tar.gz nixcfg-c9bcfb5e46be68fce56e2612b4bbf75508e1e814.zip |
sshtool: quote password to fix shell interpretation
Diffstat (limited to 'sshtool')
-rwxr-xr-x | sshtool | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,10 +28,10 @@ SSH_CONFIG=cluster/$CLUSTER/ssh_config function header { cat <<EOF -export DEPLOYTOOL_ROOT_PASSWORD=$ROOT_PASS +export DEPLOYTOOL_ROOT_PASSWORD="$ROOT_PASS" cat > /tmp/deploytool_askpass <<EOG #!/usr/bin/env sh -echo \$DEPLOYTOOL_ROOT_PASSWORD +echo "\$DEPLOYTOOL_ROOT_PASSWORD" EOG chmod +x /tmp/deploytool_askpass export SUDO_ASKPASS=/tmp/deploytool_askpass |