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

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

fix

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