From 1a243be7d0bf73dab47ce21fe6be34199e83c273 Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Wed, 29 Apr 2020 15:19:30 -0700 Subject: [PATCH] replace brace expansion, try eval --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index 8faad35..bf5633d 100755 --- a/flash +++ b/flash @@ -104,7 +104,7 @@ Math:What do you call a number only divisible by itself and 1?:Prime:0 Science:What is the distance between the Earth and Sol called?:An Astronomical Unit (AU):1 Programming:Best operating system?:Arch, because BTW i run Arch:999" -setup(){ mkdir "$DIR" && touch "$DIR/deck.csv" && touch "$DIR/.highscore" && touch "$DIR/.reviews" && echo "$DECK_TEMPLATE" > "$EXAMPLE_DECK" && echo -e "$DIR_MADE_MSG" ;} +setup(){ mkdir "$DIR" && eval touch {"$EXAMPLE_DECK","$HIGH_SCORE","$REVIEW_LOG"} && echo "$DECK_TEMPLATE" >> "$EXAMPLE_DECK" && echo -e "$DIR_MADE_MSG" ;} # Test if .local/share exists and wether to offer setup process if [ ! -d "$DIR" ];then