This commit is contained in:
@@ -712,7 +712,13 @@ func env(key, def string) string {
|
|||||||
}
|
}
|
||||||
MAINGO
|
MAINGO
|
||||||
|
|
||||||
# Create atlas-tui/main.go
|
# Create/update atlas-tui/main.go
|
||||||
|
if [[ ! -f "./cmd/atlas-tui/main.go" ]]; then
|
||||||
|
echo " Creating cmd/atlas-tui/main.go..."
|
||||||
|
else
|
||||||
|
echo " Updating cmd/atlas-tui/main.go..."
|
||||||
|
fi
|
||||||
|
|
||||||
cat > ./cmd/atlas-tui/main.go <<'MAINGO'
|
cat > ./cmd/atlas-tui/main.go <<'MAINGO'
|
||||||
package main
|
package main
|
||||||
|
|
||||||
@@ -753,10 +759,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
MAINGO
|
MAINGO
|
||||||
|
|
||||||
echo -e "${GREEN}Created cmd/ directory structure${NC}"
|
echo -e "${GREEN}cmd/ directory structure ready${NC}"
|
||||||
else
|
|
||||||
echo " Updating cmd/atlas-tui/main.go..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Verify cmd files exist now
|
# Verify cmd files exist now
|
||||||
if [[ ! -f "./cmd/atlas-api/main.go" ]]; then
|
if [[ ! -f "./cmd/atlas-api/main.go" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user