From 12c50f7939c02db85f05830c4b9fccf464b3977a Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Wed, 10 Jun 2015 20:30:48 -0400 Subject: all script: use a standard style Based on the style used for the script in resources/scripts/helpers/build/release/ --- (limited to 'resources/scripts/helpers/build/module/bucts') diff --git a/resources/scripts/helpers/build/module/bucts b/resources/scripts/helpers/build/module/bucts index 34e1a37..8f2a49a 100755 --- a/resources/scripts/helpers/build/module/bucts +++ b/resources/scripts/helpers/build/module/bucts @@ -29,7 +29,7 @@ set -u -e printf "Building bucts\n" -cd bucts/ +cd "bucts/" buildtype="unknown" if (( $# != 1 )); then @@ -38,19 +38,19 @@ else buildtype="static" fi -if [ "$buildtype" = "static" ]; then - patch Makefile < ../resources/bucts/patch/staticlink.diff +if [ "${buildtype}" = "static" ]; then + patch "Makefile" < "../resources/bucts/patch/staticlink.diff" fi make clean make -if [ "$buildtype" = "static" ]; then - patch Makefile -R < ../resources/bucts/patch/staticlink.diff +if [ "${buildtype}" = "static" ]; then + patch "Makefile" -R < "../resources/bucts/patch/staticlink.diff" fi # done. go back to main directory -cd ../ +cd "../" printf "\n\n" -- cgit v0.9.1