diff --git a/Makefile b/Makefile index 0c00b79..ba906ec 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -SHELL := /bin/bash +SHELL := $(shell echo $$SHELL) .PHONY: $(shell sed -n -e '/^$$/ { n ; /^[^ .\#][^ ]*:/ { s/:.*$$// ; p ; } ; }' $(MAKEFILE_LIST)) VERSION := $$(grep '^version' pyproject.toml | sed 's%version = "\(.*\)"%\1%') APP_NAME := $$(grep '^name' pyproject.toml | head -1 | sed 's%name = "\(.*\)"%\1%') @@ -9,7 +9,7 @@ version: ## display version and exit @echo $(VERSION) dev: ## setup development environment - ./setup.sh + $(SHELL) ./setup.sh test: ## run unit tests @echo "Running tests..." diff --git a/setup.sh b/setup.sh index c02e690..5b4309f 100755 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - # This script installs Rye and updates the shell configuration file. # It also initializes current project and syncs the dependencies. # It is intended to be run on a new system to quickly set up Rye.