Browse code

shellcheck-test 4

dewomser authored on30/12/2019 22:49:32
Showing1 changed files

... ...
@@ -7,14 +7,12 @@
7 7
 
8 8
 #0 *  * * *  XDG_RUNTIME_DIR=/run/user/$(id -u) /home/foo/bin/yt-dl-send-notify.sh
9 9
 
10
-
11
-
12 10
 dl_folder=~/Downloads/youtube-dl/
13 11
 f=$(find $dl_folder -mtime 0 -type f -regex '.*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\)')
14 12
 
13
+## comment f1=$f and uncomment next 2 lines. Reason,these lines are not shellcheck compatible.
15 14
 #folder1=$(echo $dl_folder|sed "s/\//\\\\\//g")
16
-f1=$f
17
-## comment f1=$f and uncomment next line. Reason is this line is not shellcheck compatible. 
18 15
 #f1=$(echo "$f"|sed "s/$folder1/\n/g")
16
+f1=$f
19 17
 
20 18
 notify-send "Neue Videos": "$f1" --icon=video-x-generic