Skip to content

Commit 827c2fe

Browse files
committed
[ fix ] touch files before grepping them
1 parent 4997342 commit 827c2fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ logHappy "Successfully downloaded the standard library"
9898
STDLIB_PATH="$AGDA_DIR/agda-stdlib-$STDLIB_VERSION/standard-library.agda-lib"
9999
AGDA_LIBRARIES_FILE="libraries-$AGDA_VERSION"
100100

101+
touch "$AGDA_LIBRARIES_FILE"
101102
if ! grep -Eq "$STDLIB_PATH" "$AGDA_LIBRARIES_FILE"; then
102103
echo "$STDLIB_PATH" >> "$AGDA_LIBRARIES_FILE"
103104
fi
104105

106+
touch "defaults-$AGDA_VERSION"
105107
if ! grep -Eq "^standard-library$" "defaults-$AGDA_VERSION"; then
106108
echo "standard-library" >> "defaults-$AGDA_VERSION"
107109
fi

0 commit comments

Comments
 (0)