mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
Shellcheck (https://github.com/koalaman/shellcheck) can identify common errors in shell scripts. This initial integration of shellcheck only checks the scripts in the 'scripts/' folder. This commit fixes (or disables) all reports of shellcheck to ensure this part starts error free. I am not convinced this is really necessary as most changes do not seem to be necessary for their circumstances. On the other hand it probably does not hurt to use a checker to avoid unnecessary errors. Signed-off-by: Adrian Reber <areber@redhat.com>
25 lines
499 B
Bash
Executable file
25 lines
499 B
Bash
Executable file
#!/bin/bash
|
|
# Install required packages for development environment in Debian Distro
|
|
|
|
REQ_PKGS=${REQ_PKGS:=contrib/debian/dev-packages.lst}
|
|
|
|
help_msg="Install required packages for development environment in Debian Distro
|
|
Usage:
|
|
scripts/install-debian-pkgs.sh"
|
|
|
|
function print_help()
|
|
{
|
|
exec echo -e "$help_msg"
|
|
}
|
|
|
|
function process()
|
|
{
|
|
sudo apt-get update
|
|
sudo apt-get install -yq "$( sed 's/\#.*$//' ${REQ_PKGS} )"
|
|
}
|
|
|
|
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
|
|
print_help
|
|
else
|
|
process
|
|
fi
|