Skip to content

Commit b83a2ab

Browse files
committed
fix maybesudo quotation
this specific form did not work for me on machines without sudo: ``` + '' rm -rf /root/kexec -bash: line 2: : command not found ```
1 parent 75c8570 commit b83a2ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nixos-remote.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ fi
207207
if [[ ${is_kexec-n} == "n" ]]; then
208208
ssh_ <<SSH
209209
set -efu ${enable_debug}
210-
"${maybesudo}" rm -rf /root/kexec
211-
"${maybesudo}" mkdir -p /root/kexec
210+
$maybesudo rm -rf /root/kexec
211+
$maybesudo mkdir -p /root/kexec
212212
SSH
213213

214214
if [[ -f $kexec_url ]]; then

0 commit comments

Comments
 (0)