File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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