From 18c3e510f279538a8f4ac71b9eb4ac693c91befb Mon Sep 17 00:00:00 2001 From: jsnal Date: Thu, 14 May 2020 14:31:34 -0400 Subject: [PATCH] fix(setup): fix setup on macOS Fix the setup function on macOS by removing the `eval` in the `touch` statement. This fix worked for me on macOS 10.14.6, however, this hasn't been tested with other versions of macOS. I checked that the script still works in Linux as well. --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index 9fe676c..e39854e 100755 --- a/flash +++ b/flash @@ -114,7 +114,7 @@ Programming:What is the best operating system?:Arch, because BTW i run Arch:999" # Define setup process in a function and create necessary files for user setup(){\ mkdir "$DIR" && \ - eval touch {"$EXAMPLE_DECK","$HIGH_SCORE","$REVIEW_LOG"} && \ + touch {"$EXAMPLE_DECK","$HIGH_SCORE","$REVIEW_LOG"} && \ echo "$DECK_TEMPLATE" >> "$EXAMPLE_DECK" && \ echo -e "$DIR_MADE_MSG" ;}