Commit cdcd7961 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Use source for sourcing instead of .

It improves readability according to some..
parent 7c277938
...@@ -162,7 +162,7 @@ function main() { ...@@ -162,7 +162,7 @@ function main() {
setup_disk setup_disk
bootstrap bootstrap
# shellcheck source=images/base.sh # shellcheck source=images/base.sh
. "${ORIG_PWD}/images/base.sh" source "${ORIG_PWD}/images/base.sh"
pre pre
unmount_image unmount_image
...@@ -176,10 +176,10 @@ function main() { ...@@ -176,10 +176,10 @@ function main() {
fi fi
# shellcheck source=images/common.sh # shellcheck source=images/common.sh
. "${ORIG_PWD}/images/common.sh" source "${ORIG_PWD}/images/common.sh"
for image in "${ORIG_PWD}/images/"!(base|common).sh; do for image in "${ORIG_PWD}/images/"!(base|common).sh; do
# shellcheck source=/dev/null # shellcheck source=/dev/null
. "${image}" source "${image}"
create_image "${IMAGE_NAME}" pre post create_image "${IMAGE_NAME}" pre post
done done
} }
......
...@@ -61,7 +61,7 @@ EOF ...@@ -61,7 +61,7 @@ EOF
# enabling important services # enabling important services
arch-chroot "${MOUNT}" /bin/bash -e <<EOF arch-chroot "${MOUNT}" /bin/bash -e <<EOF
. /etc/profile source /etc/profile
systemctl enable sshd systemctl enable sshd
systemctl enable haveged systemctl enable haveged
systemctl enable systemd-networkd systemctl enable systemd-networkd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment