aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorst31802015-12-08 18:26:34 +0100
committerHorst31802015-12-08 18:26:34 +0100
commit8f53d145fa193e4e5204e8949d3f7cd873e24b64 (patch)
tree827dc52aae1fc979194662665198aef0152a707d
parentf4659ecd01960c6bac028b5db95180ab7330c148 (diff)
downloadsolarc-theme-8f53d145fa193e4e5204e8949d3f7cd873e24b64.tar.gz
solarc-theme-8f53d145fa193e4e5204e8949d3f7cd873e24b64.tar.xz
solarc-theme-8f53d145fa193e4e5204e8949d3f7cd873e24b64.zip
remove bashisms
-rwxr-xr-xarc-theme-upgrade6
1 files changed, 3 insertions, 3 deletions
diff --git a/arc-theme-upgrade b/arc-theme-upgrade
index ce475b0..5f27982 100755
--- a/arc-theme-upgrade
+++ b/arc-theme-upgrade
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Script to upgrade/install the arc-theme
@@ -29,11 +29,11 @@ userdarkdir2=$HOME/local/share/themes/Arc-Dark
#Functions
show_error() {
-echo -e "\033[1;31m$@\033[0m"
+printf "\033[1;31m$@\033[0m\n"
}
check_root() {
- if [[ "${EUID}" -ne 0 ]]; then
+ if [ "$(id -u)" -ne 0 ]; then
show_error "This script has to be run as root"
echo
exec sudo "$0" "$@" # Instead of exit, just re-execute as root