Allow sxmo_files.sh script to be called with $1 as startdir
This commit is contained in:
parent
fb44e88552
commit
29098d750b
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue