From 09366721b4a5405ccd24e21c9f0c4edd25d51196 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 10 Nov 2018 14:41:38 -0500 Subject: various script cleanups --- bin/ringtone | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'bin/ringtone') diff --git a/bin/ringtone b/bin/ringtone index 5c8cfe1..19dddb6 100755 --- a/bin/ringtone +++ b/bin/ringtone @@ -1,4 +1,6 @@ -#!/bin/bash +#!/bin/sh +set -eu +set -o pipefail if [ $# -lt 3 ]; then echo "usage: ringtone " @@ -7,11 +9,12 @@ if [ $# -lt 3 ]; then exit 1 fi -mencoder -ovc frameno \ - -oac mp3lame \ - -lameopts cbr:br=64 \ - -of rawaudio \ - -o $2 \ - -audiofile $1 \ - -endpos 256kb \ - $3 +mencoder \ + -ovc frameno \ + -oac mp3lame \ + -lameopts cbr:br=64 \ + -of rawaudio \ + -o "$2" \ + -audiofile "$1" \ + -endpos 256kb \ + "$3" -- cgit v1.2.3-54-g00ecf