Skip to content

Commit

Permalink
Use cat instead of _cat
Browse files Browse the repository at this point in the history
_cat is not defined/autoloaded anywhere, so use plain unix cat utility
to avoid getting "command not found" error
  • Loading branch information
0rtz committed Dec 16, 2023
1 parent a0b633f commit 2940e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomb
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,7 @@ mount_tomb() {
if command -v hostname >/dev/null; then
_update_control_file "${tombmount}/.host" `hostname`
elif [[ -r /etc/hostname ]]; then
_update_control_file "${tombmount}/.host" $(_cat /etc/hostname)
_update_control_file "${tombmount}/.host" $(cat /etc/hostname)
else
_update_control_file "${tombmount}/.host" localhost
fi
Expand Down

0 comments on commit 2940e3e

Please sign in to comment.