Skip to content

Commit be87a52

Browse files
committed
Merge branch 'dev' into dev-stable
2 parents 516a28a + 4d70c44 commit be87a52

File tree

25 files changed

+177
-274
lines changed

25 files changed

+177
-274
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/codescan-analysis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/shellcheck.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: ShellCheck CL
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the dev branch
8+
push:
9+
branches: [ dev ]
10+
pull_request:
11+
branches: [ dev ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v2
27+
28+
# Runs a single command using the runners shell
29+
- name: Run ShellCheck
30+
uses: ludeeus/action-shellcheck@master
31+
with:
32+
severity: error
33+
env:
34+
SHELLCHECK_OPTS: --shell=bash

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ alteriso_version="3.1"
3232
# Load config file
3333
[[ ! -f "${defaultconfig}" ]] && "${tools_dir}/msg.sh" -a 'build.sh' error "${defaultconfig} was not found." && exit 1
3434
for config in "${defaultconfig}" "${script_path}/custom.conf"; do
35-
[[ -f "${script_path}/${config}.conf" ]] && source "${script_path}/${config}.conf"
35+
[[ -f "${config}" ]] && source "${config}"
3636
done
3737

3838
umask 0022
@@ -424,7 +424,7 @@ prepare_build() {
424424
local module_check
425425
module_check(){
426426
msg_debug "Checking ${1} module ..."
427-
! bash "${tools_dir}/module.sh" check "${1}" && msg_error "Module ${1} is not available." "1";
427+
bash "${tools_dir}/module.sh" check "${1}" || msg_error "Module ${1} is not available." "1";
428428
}
429429
modules=($(printf "%s\n" "${modules[@]}" | awk '!a[$0]++'))
430430
for_module "module_check {}"
@@ -600,10 +600,10 @@ make_pkgbuild() {
600600
# Customize installation (airootfs)
601601
make_customize_airootfs() {
602602
# Overwrite airootfs with customize_airootfs.
603-
local _airootfs _airootfs_script_options _script _script_list _airootfs_list _main_script
603+
local _airootfs _airootfs_script_options _script _script_list _airootfs_list=() _main_script
604604

605-
_airootfs_list=("${channel_dir}/airootfs.any" "${channel_dir}/airootfs.${arch}")
606-
for_module '_airootfs_list=("${_airootfs_list[@]}" "${module_dir}/{}/airootfs.any" "${module_dir}/{}/airootfs.${arch}")'
605+
for_module '_airootfs_list+=("${module_dir}/{}/airootfs.any" "${module_dir}/{}/airootfs.${arch}")'
606+
_airootfs_list+=("${channel_dir}/airootfs.any" "${channel_dir}/airootfs.${arch}")
607607

608608
for _airootfs in "${_airootfs_list[@]}";do
609609
if [[ -d "${_airootfs}" ]]; then
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Seat:*]
2+
autologin-session=cinnamon2d
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[Seat:*]
2+
autologin-session=i3

channels/i3/airootfs.any/etc/skel/.config/rofi/power.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare -A menu_list=(
2222

2323
function main() {
2424
local -r IFS=$'\n'
25-
[[ $# -ne 0 ]] && eval "${menu_list[$1]}" || echo "${!menu_list[*]}"
25+
[[ "${#}" -ne 0 ]] && eval "${menu_list[$1]}" || echo "${!menu_list[*]}"
2626
}
2727

28-
main $@
28+
main "${@}"

modules/lightdm/airootfs.any/root/customize_airootfs_lightdm.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sed -i "s|%USERNAME%|${username}|g" "/etc/lightdm/lightdm.conf.d/02-autologin.co
2020

2121

2222
# Session list
23-
if cat "/etc/lightdm/lightdm.conf.d/02-autologin-session.conf" | grep "%SESSION%" 1> /dev/null 2>&1; then
23+
if [[ -f "/etc/lightdm/lightdm.conf.d/02-autologin-session.conf" ]] && cat "/etc/lightdm/lightdm.conf.d/02-autologin-session.conf" | grep "%SESSION%" 1> /dev/null 2>&1; then
2424
session_list=()
2525
while read -r session; do
2626
session_list+=("${session}")
@@ -32,6 +32,10 @@ if cat "/etc/lightdm/lightdm.conf.d/02-autologin-session.conf" | grep "%SESSION%
3232
elif (( "${#session_list[@]}" == 0)); then
3333
echo "Warining: Auto login session was not found"
3434
else
35-
remove "/etc/lightdm/lightdm.conf.d/02-autologin-session.conf"
35+
echo "Failed to set the session.Multiple sessions were found." >&2
36+
echo "Please set the session of automatic login in /etc/lightdm/lightdm.conf.d/02-autologin-session.conf"
37+
echo "Found session: $(printf "%s " "${session_list[@]}")"
38+
sleep 0.5
39+
exit 1
3640
fi
3741
fi

system/aur.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
set -e -u
1010

1111
aur_username="aurbuild"
12-
pacman_debug=true
12+
pacman_debug=false
1313
pacman_args=()
1414

1515
trap 'exit 1' 1 2 3 15

0 commit comments

Comments
 (0)