diff --git a/disable-HT.sh b/disable-HT.sh index e471bde..4ad7150 100755 --- a/disable-HT.sh +++ b/disable-HT.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$EUID" -ne 0 ]; then echo "This script must be run as root" 1>&2 @@ -12,4 +12,4 @@ for cpu in /sys/devices/system/cpu/cpu[1-9]*; do echo 0 > "/sys/devices/system/cpu/cpu$sibling/online" fi fi -done \ No newline at end of file +done diff --git a/enable-HT.sh b/enable-HT.sh index 1e3611f..437a780 100755 --- a/enable-HT.sh +++ b/enable-HT.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$EUID" -ne 0 ]; then echo "This script must be run as root" 1>&2 @@ -7,4 +7,4 @@ fi for cpu in /sys/devices/system/cpu/cpu[1-9]*; do echo 1 > "$cpu/online" -done \ No newline at end of file +done diff --git a/kernel-nanoBench.sh b/kernel-nanoBench.sh index c22ef08..88d675c 100755 --- a/kernel-nanoBench.sh +++ b/kernel-nanoBench.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$EUID" -ne 0 ]; then echo "Error: nanoBench requires root privileges" diff --git a/nanoBench.sh b/nanoBench.sh index 5f897a3..4efb880 100755 --- a/nanoBench.sh +++ b/nanoBench.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$EUID" -ne 0 ]; then echo "Error: nanoBench requires root privileges" 1>&2 diff --git a/set-R14-size.sh b/set-R14-size.sh index 1616b5b..dab555d 100755 --- a/set-R14-size.sh +++ b/set-R14-size.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$EUID" -ne 0 ]; then echo "This script must be run as root" 1>&2 diff --git a/single-core-mode.sh b/single-core-mode.sh index 7fad52b..8dab419 100755 --- a/single-core-mode.sh +++ b/single-core-mode.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash if [ "$EUID" -ne 0 ]; then echo "This script must be run as root" 1>&2