commit 4715742
hovercats
·
2026-08-19 21:43:53 +0000 UTC
parent ba5205e
rename file variable to songfile to make it more distinct
1 files changed,
+4,
-4
M
ampv
M
ampv
+4,
-4
1@@ -13,11 +13,11 @@ fn getfilepath {
2
3 switch($1) {
4 case add
5- file=`{getfilepath}
6- printf '%s\n' $"file >> $playlist
7+ songfile=`{getfilepath}
8+ printf '%s\n' $"songfile >> $playlist
9 case del
10- file=`{getfilepath}
11- grep -v $"file $playlist > $tmpfile
12+ songfile=`{getfilepath}
13+ grep -v $"songfile $playlist > $tmpfile
14 mv -f $tmpfile $playlist
15 case next
16 printf 'playlist-next\n' | njetcat