File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
scripts/opt/raspberrypi-ua-netinst Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1088,7 +1088,7 @@ if [ -n "${root_ssh_pubkey}" ]; then
10881088 if mkdir -p /rootfs/root/.ssh && chmod 700 /rootfs/root/.ssh; then
10891089 if [ -f " /bootfs/raspberrypi-ua-netinst/config/files/${root_ssh_pubkey} " ]; then
10901090 echo -n " from file '${root_ssh_pubkey} '... "
1091- cp " /bootfs/raspberrypi-ua-netinst/config/files/${root_ssh_pubkey} " /rootfs/root/.ssh/authorized_keys | fail
1091+ cp " /bootfs/raspberrypi-ua-netinst/config/files/${root_ssh_pubkey} " /rootfs/root/.ssh/authorized_keys || fail
10921092 echo " OK"
10931093 else
10941094 echo -n " ... "
@@ -1135,7 +1135,7 @@ if [ -n "${username}" ]; then
11351135 if mkdir -p " /rootfs/home/${username} /.ssh" && chmod 700 " /rootfs/home/${username} /.ssh" ; then
11361136 if [ -f " /bootfs/raspberrypi-ua-netinst/config/files/${user_ssh_pubkey} " ]; then
11371137 echo -n " from file '${user_ssh_pubkey} '... "
1138- cp " /bootfs/raspberrypi-ua-netinst/config/files/${user_ssh_pubkey} " " /rootfs/home/${username} /.ssh/authorized_keys" | fail
1138+ cp " /bootfs/raspberrypi-ua-netinst/config/files/${user_ssh_pubkey} " " /rootfs/home/${username} /.ssh/authorized_keys" || fail
11391139 echo " OK"
11401140 else
11411141 echo -n " ... "
You can’t perform that action at this time.
0 commit comments