Skip to content

Commit 5257321

Browse files
authored
Merge branch 'main' into ci-macos
2 parents 2e4efb6 + 0a06800 commit 5257321

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
os:
1616
- macos-26
17-
- ubuntu-20.04
17+
- ubuntu-24.04
1818

1919
steps:
2020
- uses: actions/checkout@v2

installer

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ DOTFILES_PATH="${DOTFILES_PATH:-$HOME/.dotfiles}"
7171
DOTFILES_PATH="$(eval echo "$DOTFILES_PATH")"
7272
export DOTFILES_PATH="$DOTFILES_PATH"
7373

74+
DOTFILES_BRANCH=${DOTFILES_BRANCH:-main}
75+
7476
dotly_inner_path="modules/dotly"
7577
export DOTLY_PATH="$DOTFILES_PATH/$dotly_inner_path"
7678

@@ -140,7 +142,7 @@ if ! command_exists curl; then
140142
fi
141143

142144
_a "Initializing your dotfiles git repository"
143-
git init 2>&1 | _log "Initializing repository"
145+
git init --initial-branch="$DOTFILES_BRANCH" 2>&1 | _log "Initializing repository"
144146

145147
_a "Cloning dotly"
146148
git submodule add -b "$DOTLY_BRANCH" "https://github.com/$DOTLY_REPOSITORY.git" "$dotly_inner_path" 2>&1 | _log "Adding dotly submodule"

scripts/core/dot.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ dot::list_scripts() {
2525
}
2626

2727
dot::list_scripts_path() {
28-
dotly_contexts=$(find "$DOTLY_PATH/scripts" -maxdepth 2 -perm /+111 -type f | grep -v "$DOTLY_PATH/scripts/core")
29-
dotfiles_contexts=$(find "$DOTFILES_PATH/scripts" -maxdepth 2 -perm /+111 -type f)
28+
if platform::is_macos; then
29+
dotly_contexts=$(find "$DOTLY_PATH/scripts" -maxdepth 2 -perm -111 -type f | grep -v "$DOTLY_PATH/scripts/core")
30+
dotfiles_contexts=$(find "$DOTFILES_PATH/scripts" -maxdepth 2 -perm -111 -type f)
31+
else
32+
dotly_contexts=$(find "$DOTLY_PATH/scripts" -maxdepth 2 -perm /+111 -type f | grep -v "$DOTLY_PATH/scripts/core")
33+
dotfiles_contexts=$(find "$DOTFILES_PATH/scripts" -maxdepth 2 -perm /+111 -type f)
34+
fi
3035

3136
printf "%s\n%s" "$dotly_contexts" "$dotfiles_contexts" | sort -u
3237
}

0 commit comments

Comments
 (0)