Skip to content

Commit 62a2c03

Browse files
committed
[ cosmetic ] more structure
1 parent 9f7bb6b commit 62a2c03

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stdlib-install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/sh
22

3+
########################################################################
4+
# DEBUG AND LOGGING
5+
36
set -eu
47

58
isDebugMode() {
@@ -23,6 +26,9 @@ logWarning() {
2326
echo "\033[93m⚠\033[0m $1"
2427
}
2528

29+
########################################################################
30+
## PRELIMINARY CHECKS
31+
2632
checkDependency () {
2733
if ! [ -x "$(command -v $1)" ]; then
2834
throwError "Missing dependency: I could not find the executable '$1'"
@@ -39,6 +45,9 @@ checkDependency "tar"
3945
checkDependency "touch"
4046
checkDependency "wget"
4147

48+
########################################################################
49+
## IDENTIFY AND INSTALL THE CORRECT STDLIB VERSION
50+
4251
# Pick the Agda executable to analyse
4352
# unless the caller has specified one
4453
if [ -z ${AGDA_EXEC-} ]; then

0 commit comments

Comments
 (0)