config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit a142fe0d8a0a9c88ed2d72417b3559bdbeaefe68
parent a64fd45023b4424d594f3ea7ee179dcfe5503fe6
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Thu, 19 Nov 2020 15:29:52 -0800

Fix `mato' script

Remove the rc(1) `x' flag (like xtrace in ksh) and actually add tracks
to the playlists.

Diffstat:
Mmodules/scripts/.local/bin/mato | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/scripts/.local/bin/mato b/modules/scripts/.local/bin/mato @@ -1,4 +1,4 @@ -#!/usr/local/bin/rc -ex +#!/usr/local/bin/rc -e # Add the current song to a playlist progname = `{ basename $0 } @@ -26,7 +26,7 @@ for (m3u in $*) { err '''%s'': Nonexistent.\n' $file } else { if (isduplicate $track <$file) { - echo 'echo $track >> $file' + echo $track >> $file } else { warn '''%s'': Already contains this track.\n' $m3u }