Use source instead of dot notation

This commit is contained in:
Manuel Thalmann 2024-07-09 04:00:26 +02:00
parent def44b1351
commit 4209a7c107
5 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@ begin
set -l projectDir "$dir/.."
begin
. "$dir/template-path.fish"
source "$dir/template-path.fish"
rm -rf "$contextRoot"
and cp -r "$(templatePath)" "$contextRoot"
and chmod -R 755 "$contextRoot"

View file

@ -3,7 +3,7 @@ begin
set -l dir (status dirname)
set -l projectDir "$dir/.."
set -l patch "$dir/valhalla.patch"
. "$dir/template-path.fish"
source "$dir/template-path.fish"
cp -r "$(templatePath)"/* "$projectDir"
and begin

View file

@ -6,4 +6,4 @@ end
CONFIG_MODULE="$(status dirname)/config.nix" \
ARCH_HOSTNAME="manu-surface" \
USER_DISPLAYNAME="Manuel Thalmann" \
. "$(status dirname)/../../../scripts/Arch/OS/setup.fish";
source "$(status dirname)/../../../scripts/Arch/OS/setup.fish";

View file

@ -1,8 +1,8 @@
#!/bin/env fish
begin
set -l dir (status dirname)
. "$dir/../../Common/Scripts/config.fish"
. "$dir/../../Common/Scripts/hooks.fish"
source "$dir/../../Common/Scripts/config.fish"
source "$dir/../../Common/Scripts/hooks.fish"
set -q CONFIG_MODULE || set -l CONFIG_MODULE "$dir/config.nix"
set -q ARCH_TIMEZONE || set -l ARCH_TIMEZONE "Europe/Zurich"

View file

@ -1,5 +1,5 @@
#!/bin/env fish
function getConfig -S -a property
. "$(status dirname)/eval-module.fish"
source "$(status dirname)/eval-module.fish"
evalModule "$CONFIG_MODULE" "$property" $argv[2..]
end