Make ctail handle files with spaces in their name

Quotes are needed around "$@" to keep parameters from splitting on spaces.
This commit is contained in:
jxyzn 2018-11-28 13:53:42 -08:00 committed by GitHub
commit 69a12de4c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
if which ccze >/dev/null 2>&1; then if which ccze >/dev/null 2>&1; then
tail -F $@ | ccze -A tail -F "$@" | ccze -A
else else
echo "ERROR: ccze not found, hint..." 1>&2 echo "ERROR: ccze not found, hint..." 1>&2
echo " sudo apt-get install ccze" 2>&1 echo " sudo apt-get install ccze" 2>&1