Allow sxmo_files.sh script to be called with $1 as startdir

This commit is contained in:
Miles Alan 2020-06-09 20:18:35 -05:00
parent fb44e88552
commit 29098d750b

View file

@ -1,6 +1,8 @@
#!/usr/bin/env sh
EDITOR=vis
cd "/home/$USER/" || exit 1
DIR="$1"
[ -z "$DIR" ] && DIR="/home/$USER/"
cd "$DIR" || exit 1
handlefiles() {
if echo "$1" | grep -iE ".(webm|ogg|mp4|mov|avi)$"; then