~voidraven/mp3me

1d069f9fe885da5e72e739c02c864150e18c1b86 — lotus 1 year, 3 months ago b7719ce
removed local keyword (not posix compliant)
1 files changed, 3 insertions(+), 3 deletions(-)

M mp3me.sh
M mp3me.sh => mp3me.sh +3 -3
@@ 1,4 1,4 @@
#!/usr/bin/env bash
#!/bin/sh
# mp3me
# author: lotus
# https://git.zerohack.xyz/lotus


@@ 21,8 21,8 @@ SHIFT=0
# check if the file provided is a has a valid music extension
# cuts off extension and compares it
fun_is_music () {
    local FILE_EXT=$(echo $1 | cut -d"." -f 2 | awk '{print tolower($0)}')
    if [ $FILE_EXT = "flac" ] || [ $FILE_EXT = "aac" ] || [ $FILE_EXT = "ogg" ] || [ $FILE_EXT = "wav" ] || [ $FILE_EXT = "m4a" ] ; then
    L_FILE_EXT=$(echo $1 | cut -d"." -f 2 | awk '{print tolower($0)}')
    if [ $L_FILE_EXT = "flac" ] || [ $L_FILE_EXT = "aac" ] || [ $L_FILE_EXT = "ogg" ] || [ $L_FILE_EXT = "wav" ] || [ $L_FILE_EXT = "m4a" ] ; then
	return 0    
    fi
    return 1