Skip to content

Commit f6558fd

Browse files
committed
Minor tweaks
1 parent f56d76d commit f6558fd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ EXEDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
99
cd "$EXEDIR"
1010

1111
# Make sure the USER envar is set (on Android it is not)
12-
export USER="$(whoami)"
12+
[ -z "${USER}" ] && export USER="$(whoami)"
1313

1414
source "${EXEDIR}/scripts/common/filesystem.sh"
1515
source "${REPO_DIR}/scripts/common/common.sh"
@@ -73,8 +73,8 @@ fi
7373
# Configure and customise the system
7474
run_script "${REPO_SCRIPTS_DIR}/configure-system.sh" # Run after update-rcs.sh
7575
if [ "${OS}" = 'Linux' ] \
76-
&& ${HAS_GUI} \
77-
&& ! [[ "${DISTRO}" =~ 'WSL' ]]; then
76+
&& ${HAS_GUI} \
77+
&& ! [[ "${DISTRO}" =~ 'WSL' ]]; then
7878
run_script "${REPO_SCRIPTS_DIR}/customise-launchers.sh"
7979
run_script "${REPO_SCRIPTS_DIR}/configure-autostart-apps.sh"
8080
run_script "${REPO_SCRIPTS_DIR}/configure-default-apps.sh"
@@ -97,4 +97,4 @@ run_script "${REPO_SCRIPTS_DIR}/clean-files.sh"
9797
# Assign users and groups
9898
[ "${OS}" = 'Linux' ] && run_script_as_su "${REPO_SCRIPTS_DIR}/assign-users-and-groups.sh"
9999

100-
source ~/.bashrc
100+
source "${HOME}/.bashrc"

scripts/update-grub.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
source "scripts/common/common.sh"
2+
source 'scripts/common/common.sh'
33

44
GRUB_CFG_PATH="${ROOT_BOOT}/grub/grub.cfg"
55

0 commit comments

Comments
 (0)