Fix a few shellcheck warnings
This commit is contained in:
parent
e303284bae
commit
f607e381f1
1 changed files with 3 additions and 3 deletions
|
@ -312,7 +312,7 @@ tm () {
|
||||||
|
|
||||||
usermotd () {
|
usermotd () {
|
||||||
# OS (kernel) name and version in reverse video.
|
# OS (kernel) name and version in reverse video.
|
||||||
printf "\033[7m$(uname -sr)\033[0m\n"
|
printf '\033[7m%s\033[0m\n' "$(uname -sr)"
|
||||||
|
|
||||||
# Distro name and version on Linux and macOS.
|
# Distro name and version on Linux and macOS.
|
||||||
if [ -r /etc/os-release ]
|
if [ -r /etc/os-release ]
|
||||||
|
@ -404,13 +404,13 @@ virtinst () {
|
||||||
--osinfo linux2020 \
|
--osinfo linux2020 \
|
||||||
--boot uefi \
|
--boot uefi \
|
||||||
--cpu host-passthrough \
|
--cpu host-passthrough \
|
||||||
--disk $_acp_vm_root/$_acp_vm_name.qcow2,size=20 \
|
--disk "$_acp_vm_root/$_acp_vm_name.qcow2,size=20" \
|
||||||
--graphics vnc \
|
--graphics vnc \
|
||||||
--console pty,target.type=virtio \
|
--console pty,target.type=virtio \
|
||||||
--channel unix,target.type=virtio,target.name=org.qemu.guest_agent.0 \
|
--channel unix,target.type=virtio,target.name=org.qemu.guest_agent.0 \
|
||||||
--video virtio \
|
--video virtio \
|
||||||
--autoconsole none \
|
--autoconsole none \
|
||||||
--name $*
|
--name "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -r "$XDG_CONFIG_HOME/profile.local" ]
|
if [ -r "$XDG_CONFIG_HOME/profile.local" ]
|
||||||
|
|
Loading…
Reference in a new issue