Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Foundation
Security
scripts
Merge requests
!8
adding a dependency check for jsonnet and jb
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
adding a dependency check for jsonnet and jb
otterdog_database2
into
main
Overview
0
Commits
1
Changes
2
Merged
Francisco Perez
requested to merge
otterdog_database2
into
main
1 year ago
Overview
0
Commits
1
Changes
2
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
a28f9fca
1 commit,
1 year ago
2 files
+
27
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
otterdog_database/scripts/GLOBAL.sh
+
26
−
0
Options
#!/bin/bash
check_dependencies
()
{
local
missing_dependencies
=()
# Check for jsonnet
if
!
command
-v
jsonnet &> /dev/null
;
then
missing_dependencies+
=(
"jsonnet"
)
fi
# Check for jb
if
!
command
-v
jb &> /dev/null
;
then
missing_dependencies+
=(
"jb"
)
fi
if
[
${#
missing_dependencies
[@]
}
-eq
0
]
;
then
echo
"All required dependencies are installed."
else
echo
"ERROR!!! The following dependencies are missing:"
for
dep
in
"
${
missing_dependencies
[@]
}
"
;
do
echo
"
$dep
"
done
fi
}
Loading