Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 4e3f6d4

Browse files
committed
fix: please shellcheck
1 parent c5e6da6 commit 4e3f6d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

image/sysroot-tree/usr/libexec/openssh/sshd-keygen

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ if [[ ! -x $KEYGEN ]]; then
2727
fi
2828

2929
# remove old keys
30-
rm -f $KEY{,.pub}
30+
rm -f "$KEY"{,.pub}
3131

3232
# create new keys
33-
if ! $KEYGEN -q -t $KEYTYPE -f $KEY -C '' -N '' >&/dev/null; then
33+
if ! $KEYGEN -q -t "$KEYTYPE" -f "$KEY" -C '' -N '' >&/dev/null; then
3434
exit 1
3535
fi
3636

3737
# sanitize permissions
38-
/usr/bin/chmod 600 $KEY
39-
/usr/bin/chmod 644 $KEY.pub
38+
/usr/bin/chmod 600 "$KEY"
39+
/usr/bin/chmod 644 "$KEY".pub
4040
if [[ -x /usr/sbin/restorecon ]]; then
41-
/usr/sbin/restorecon $KEY{,.pub}
41+
/usr/sbin/restorecon "$KEY"{,.pub}
4242
fi
4343

4444
exit 0

0 commit comments

Comments
 (0)