From 49b88176a067ceb6695fa7e20bb80ca8edaf5d18 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 21 Jul 2016 20:37:23 +0200 Subject: mless: don't error on unresolved mid --- mless | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mless') diff --git a/mless b/mless index ae2176f..6e4ebc1 100755 --- a/mless +++ b/mless @@ -6,6 +6,11 @@ PATH="${0%/*}:$PATH" if [ "$1" = --filter ]; then [ "$2" = //scan ] && exec mscan : + if ! [ -f $(mseq "$2") ]; then + mseq "$2" + exit + fi + mshow "$2" | awk ' function fg(c, s) { return sprintf("\033[38;5;%03dm%s\033[0m", c, s) } function so(s) { return sprintf("\033[1m%s\033[0m", s) } -- cgit 1.4.1