Use portable shebang lines

This commit is contained in:
Jacek Galowicz
2020-11-18 15:29:37 +01:00
parent 1765470b65
commit 3c4e6c77ff
6 changed files with 8 additions and 8 deletions

View File

@@ -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
done

View File

@@ -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
done

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ]; then
echo "Error: nanoBench requires root privileges"

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ "$EUID" -ne 0 ]; then
echo "Error: nanoBench requires root privileges" 1>&2

View File

@@ -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

View File

@@ -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