File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 matrix :
1515 os :
1616 - macos-26
17- - ubuntu-20 .04
17+ - ubuntu-24 .04
1818
1919 steps :
2020 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ DOTFILES_PATH="${DOTFILES_PATH:-$HOME/.dotfiles}"
7171DOTFILES_PATH=" $( eval echo " $DOTFILES_PATH " ) "
7272export DOTFILES_PATH=" $DOTFILES_PATH "
7373
74+ DOTFILES_BRANCH=${DOTFILES_BRANCH:- main}
75+
7476dotly_inner_path=" modules/dotly"
7577export DOTLY_PATH=" $DOTFILES_PATH /$dotly_inner_path "
7678
@@ -140,7 +142,7 @@ if ! command_exists curl; then
140142fi
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"
146148git submodule add -b " $DOTLY_BRANCH " " https://github.com/$DOTLY_REPOSITORY .git" " $dotly_inner_path " 2>&1 | _log " Adding dotly submodule"
Original file line number Diff line number Diff line change @@ -25,8 +25,13 @@ dot::list_scripts() {
2525}
2626
2727dot::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}
You can’t perform that action at this time.
0 commit comments