From 467d77bd0d191b38e5b2cc11e7ae4207fcb87b17 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 30 Aug 2015 15:53:54 +0100 Subject: more scripts: don't use the [[ bashism --- resources/scripts/helpers/build/clean/grub | 2 +- resources/scripts/helpers/build/dependencies/parabola | 2 +- resources/scripts/helpers/build/dependencies/trisquel7 | 2 +- resources/scripts/helpers/build/module/grub | 2 +- resources/scripts/misc/powertop.trisquel7 | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'resources') diff --git a/resources/scripts/helpers/build/clean/grub b/resources/scripts/helpers/build/clean/grub index af657f04..e4b4a656 100755 --- a/resources/scripts/helpers/build/clean/grub +++ b/resources/scripts/helpers/build/clean/grub @@ -30,7 +30,7 @@ set -u -e cd "grub/" printf "Cleaning the previous build of GRUB\n" -[[ -f "Makefile" ]] && make distclean +[ -f "Makefile" ] && make distclean # done. go back to main directoy cd "../" diff --git a/resources/scripts/helpers/build/dependencies/parabola b/resources/scripts/helpers/build/dependencies/parabola index 92a88be4..1f4c4627 100755 --- a/resources/scripts/helpers/build/dependencies/parabola +++ b/resources/scripts/helpers/build/dependencies/parabola @@ -24,7 +24,7 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -if [[ $EUID -ne 0 ]]; then +if [ $EUID -ne 0 ]; then printf "This script must be run as root\n" exit 1 fi diff --git a/resources/scripts/helpers/build/dependencies/trisquel7 b/resources/scripts/helpers/build/dependencies/trisquel7 index d3027f9c..34625f7e 100755 --- a/resources/scripts/helpers/build/dependencies/trisquel7 +++ b/resources/scripts/helpers/build/dependencies/trisquel7 @@ -21,7 +21,7 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -if [[ $EUID -ne 0 ]]; then +if [ $EUID -ne 0 ]; then printf "This script must be run as root\n" exit 1 fi diff --git a/resources/scripts/helpers/build/module/grub b/resources/scripts/helpers/build/module/grub index 0e424a4a..47589d54 100755 --- a/resources/scripts/helpers/build/module/grub +++ b/resources/scripts/helpers/build/module/grub @@ -33,7 +33,7 @@ printf "Building GRUB\n" cd "grub/" # clean it first -[[ -f Makefile ]] && make distclean +[ -f Makefile ] && make distclean # build grub ./autogen.sh diff --git a/resources/scripts/misc/powertop.trisquel7 b/resources/scripts/misc/powertop.trisquel7 index 215ae03c..473c8e28 100755 --- a/resources/scripts/misc/powertop.trisquel7 +++ b/resources/scripts/misc/powertop.trisquel7 @@ -21,7 +21,7 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -if [[ $EUID -ne 0 ]]; then +if [ $EUID -ne 0 ]; then printf "This script must be run as root\n" exit 1 fi -- cgit v1.2.3-70-g09d2