Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rescript-templater/init-raczotbuild.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@
(when (do-gitinit?)
(printf "\nInitializing git repository...\n")
(parameterize ([current-directory (proj-name)])
(system "git init .")
(system "git add .")
(system (format "git commit -m \"chore: init ~a\"" (proj-name)))))
(system* (find-executable-path "git") "init")
(system* (find-executable-path "git") "add" ".")
(system* (find-executable-path "git") "commit" "-m" (format "chore: init ~a" (proj-name)))))

(printf "\n🎉 Done! Your Zotero plugin project is ready.\n")
(printf " cd ~a && start developing!\n" (proj-name))]))
Expand Down
4 changes: 2 additions & 2 deletions rescript-templater/tests/bash-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ assert_command_succeeds() {
local message="${2:-Command should succeed}"

((TESTS_RUN++))
if eval "$cmd" > /dev/null 2>&1; then
if bash -c "$cmd" > /dev/null 2>&1; then
echo -e "${GREEN}✓${NC} $message"
((TESTS_PASSED++))
else
Expand All @@ -102,7 +102,7 @@ assert_command_fails() {
local message="${2:-Command should fail}"

((TESTS_RUN++))
if ! eval "$cmd" > /dev/null 2>&1; then
if ! bash -c "$cmd" > /dev/null 2>&1; then
echo -e "${GREEN}✓${NC} $message"
((TESTS_PASSED++))
else
Expand Down
Loading