forked from LAAC-LSCP/VTC
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck_sys_dependencies.sh
More file actions
executable file
·42 lines (35 loc) · 964 Bytes
/
Copy pathcheck_sys_dependencies.sh
File metadata and controls
executable file
·42 lines (35 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
echo "Checking required dependencies..."
echo "================================"
missing_deps=()
# Check for uv
if command -v uv &> /dev/null; then
echo "✓ uv is installed ($(uv --version))"
else
echo "✗ uv is NOT installed"
missing_deps+=("uv")
fi
# Check for git-lfs
if command -v git-lfs &> /dev/null; then
echo "✓ git-lfs is installed ($(git-lfs --version))"
else
echo "✗ git-lfs is NOT installed"
missing_deps+=("git-lfs")
fi
# Check for ffmpeg
if command -v ffmpeg &> /dev/null; then
echo "✓ ffmpeg is installed ($(ffmpeg -version | head -n1))"
else
echo "✗ ffmpeg is NOT installed"
missing_deps+=("ffmpeg")
fi
echo "================================"
# Summary
if [ ${#missing_deps[@]} -eq 0 ]; then
echo "All system dependencies are installed!"
exit 0
else
echo "Missing dependencies: ${missing_deps[*]}"
echo "Please install the missing tools and try again."
exit 1
fi