mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
use modern Bash syntax
This commit is contained in:
4
build.sh
4
build.sh
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
AARU_VERSION=6.0.0-alpha6
|
AARU_VERSION=6.0.0-alpha6
|
||||||
OS_NAME=`uname`
|
OS_NAME=$(uname)
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ cd ..
|
|||||||
|
|
||||||
# If we are compiling on Linux check if we are on Arch Linux and then create the Arch Linux package as well
|
# If we are compiling on Linux check if we are on Arch Linux and then create the Arch Linux package as well
|
||||||
if [[ ${OS_NAME} == Linux ]]; then
|
if [[ ${OS_NAME} == Linux ]]; then
|
||||||
OS_RELEASE=`pcregrep -o1 -e "^ID=(?<distro_id>\w+)" /etc/os-release`
|
OS_RELEASE=$(pcregrep -o1 -e "^ID=(?<distro_id>\w+)" /etc/os-release)
|
||||||
|
|
||||||
if [[ ${OS_RELEASE} != arch ]]; then
|
if [[ ${OS_RELEASE} != arch ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user