Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.sh #659

Merged
merged 1 commit into from
Nov 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions 00__skill_template/requirements.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# The requirements.sh is an advanced mechanism an should rarely be needed.
#!/bin/bash

# The requirements.sh is an advanced mechanism an should rarely be needed.
# Be aware that it won't run with root permissions and 'sudo' won't work
# in most cases.
# in most cases.

##########################
# The below code shows you how to do conditional installations for different distributions.
# Uncomment the code first by removing the pound `#` signs in front of each line.
##########################

# detect distribution using lsb_release (may be replaced parsing /etc/*release)
# dist=$(lsb_release -ds)

# setting dependencies and package manager in relation to the distribution
# if $(hash pkcon 2>/dev/null); then
# pm="pkcon"
# else
# priv="sudo"
# if [ "$dist" == "\"Arch Linux\"" ]; then
# pm="pacman -S"
# dependencies=( aaa )
# elif [[ "$dist" =~ "Ubuntu" ]] || [[ "$dist" =~ "Debian" ]] ||[[ "$dist" =~ "Raspbian" ]]; then
# pm="apt install"
# dependencies=( bbb)
# elif [[ "$dist" =~ "SUSE" ]]; then
# pm="zypper install"
# dependencies=( ccc )
# fi
# fi

# installing dependencies
# if [ ! -z "$pm" ]; then
# for dep in "${dependencies[@]}"
# do
# $priv $pm $dep
# done
# fi