source: make-mini-image/config/01-depends @ 2904

Last change on this file since 2904 was 2904, checked in by mabarracus, 3 years ago

Fix

  • Property svn:executable set to *
File size: 385 bytes
Line 
1#!/bin/bash
2set -e
3UID=$(id -u)
4if [ $UID -ne 0 ]; then
5    echo "This build needs run as root, exitting..."
6    exit 1
7fi
8
9DEPENDENCIES="ltsp-build-client ltsp-chroot apt-key apt"
10
11echo "Checking dependencies ..."
12for prog in ${DEPENDENCIES}; do 
13    T=$(which ${prog})
14    if [ -z ${T} ]; then
15        echo "This build needs ${prog}, please install & run again"
16        exit 1
17    fi
18done
19
20exit 0
Note: See TracBrowser for help on using the repository browser.