From 6b4c7e24755a468ecf12303f03dd4936a4f7db33 Mon Sep 17 00:00:00 2001 From: MisterDA Date: Sat, 26 Jul 2014 20:18:49 +0200 Subject: [PATCH] Fix bash stuff: functions and shebang. --- love-release.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/love-release.sh b/love-release.sh index 7cb8d25..509916f 100755 --- a/love-release.sh +++ b/love-release.sh @@ -1,11 +1,11 @@ -#!/bin/bash +#!/usr/bin/env bash ## Edit this if you want to use another Löve version. LOVE_VERSION=0.9.1 ## Short help ## -function short_help() +short_help () { echo "Usage: love-release.sh [options...] [files...] Options: @@ -25,7 +25,7 @@ Options: } ## Long help ## -function long_help() +long_help () { echo " .TH LOVE-RELEASE.SH 1 @@ -206,7 +206,7 @@ command -v lua >/dev/null 2>&1 || { FOUND_LUA=false; } ## Parsing function ## -function getoptex() +getoptex () { let $# || return 1 local optlist="${1#;}" @@ -294,7 +294,7 @@ function getoptex() return 1 } -float_test() { +float_test () { a=$(echo | awk 'END { exit ( !( '"$1"')); }' && echo "true") if [ "$a" != "true" ]; then a=false