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

Last change on this file since 2905 was 2905, checked in by mabarracus, 4 years ago

fix

  • Property svn:executable set to *
File size: 393 bytes
Line 
1#!/bin/bash
2set -e
3USER_ID=$(id -u)
4if [ $USER_ID -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.