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

master
Miles Alan 4 years ago
parent fb44e88552
commit 29098d750b
  1. 4
      scripts/appscripts/sxmo_files.sh

@ -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

Loading…
Cancel
Save