diff --git a/wiki/Example_script.wiki b/wiki/Example_script.wiki index b600390..86bc0b8 100644 --- a/wiki/Example_script.wiki +++ b/wiki/Example_script.wiki @@ -16,19 +16,9 @@ This is the code. SRC="$1" DEST="$2" - -TYPE=`file -b "$SRC"` -RES=`echo "$TYPE" | grep "WAVE audio"` -if [ ! "$?" == "0" ] -then - echo "File $FILE is not a wav file..." - echo "Type is $TYPE" - exit 0 -fi - BASENAME=`basename "$SRC"` MP3FILE="`echo ${BASENAME%wav}mp3`" lame --quiet --preset insane "$SRC" "$DEST/$MP3FILE" exit "$?" -}}} +}}} \ No newline at end of file