mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-23 06:58:24 +00:00
Use cat instead of _cat
_cat is not defined/autoloaded anywhere, so use plain unix cat utility to avoid getting "command not found" error
This commit is contained in:
parent
a0b633fb77
commit
21da75adab
2
tomb
2
tomb
@ -2525,7 +2525,7 @@ mount_tomb() {
|
|||||||
if command -v hostname >/dev/null; then
|
if command -v hostname >/dev/null; then
|
||||||
_update_control_file "${tombmount}/.host" `hostname`
|
_update_control_file "${tombmount}/.host" `hostname`
|
||||||
elif [[ -r /etc/hostname ]]; then
|
elif [[ -r /etc/hostname ]]; then
|
||||||
_update_control_file "${tombmount}/.host" $(_cat /etc/hostname)
|
_update_control_file "${tombmount}/.host" $(cat /etc/hostname)
|
||||||
else
|
else
|
||||||
_update_control_file "${tombmount}/.host" localhost
|
_update_control_file "${tombmount}/.host" localhost
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user