From 5ad9edaf6e3efc9253b0bbe58ea787feedd0237b Mon Sep 17 00:00:00 2001 From: e5ten Date: Fri, 19 Oct 2018 00:31:22 -0400 Subject: [PATCH] Replace dir instances with ls --- yadshot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yadshot.sh b/yadshot.sh index 820322e..ae718bb 100755 --- a/yadshot.sh +++ b/yadshot.sh @@ -161,8 +161,8 @@ export -f yadshotsavesettings # change yadshot's settings function yadshotsettings() { . ~/.config/yadshot/yadshot.conf - if [ $(dir -C -w 1 $HOME/.config/yadshot/plugins | wc -l) -gt 0 ]; then - YSHOT_PLUGIN_LIST="$(dir -C -w 1 $HOME/.config/yadshot/plugins | tr '\n' ',' | rev | cut -f2- -d',' | rev)" + if [ $(ls -C -w 1 $HOME/.config/yadshot/plugins | wc -l) -gt 0 ]; then + YSHOT_PLUGIN_LIST="$(ls -C -w 1 $HOME/.config/yadshot/plugins | tr '\n' ',' | rev | cut -f2- -d',' | rev)" fi if type ffmpeg >/dev/null 2>&1; then YSHOT_PLUGIN_LIST="ffmpeg,$YSHOT_PLUGIN_LIST"