This file is indexed.

/usr/share/bashburn/lib/misc/check_path.sh is in bashburn 3.0.1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
typeset -i bb_not_found_apps	# Must be at least file global scope.
i_check_path()
{
    typeset program
    typeset tmpfn=$1
    shift
    # Function that check the paths of applications 
    # used for BashBurn.
    for program in "$@"
    do
	if which ${program} > $tmpfn 2>&1
	then
	    echo -e \
"\t${program} ${BBSUBCOLOR} $bb_cp_1 ${BBCOLOROFF} $bb_cp_2 $(< $tmpfn)"
	else
	    echo -e \
"\t${program} ${BBTABLECOLOR} $bb_cp_3 ${BBCOLOROFF} $bb_cp_4"
	    bb_not_found_apps=1 # Flag an app is missing
	fi
    done
}

check_path()
{
    # Some variables
    typeset -a BBBURNING
    typeset -a BBRIPPERS
    typeset -a BBXCODERS
    typeset -a BBMISC
    typeset tempfn=/tmp/bb_check_path.$$

    BBBURNING=( \
	    ${BB_CDIMAGECMD} \
	    ${BB_CDBURNCMD} \
	    ${BB_ISOCMD} \
	    ${BB_DVDBURNCMD} \
	    )
    BBRIPPERS=( ${BB_CDAUDIORIP} ${BB_READCD} )
    BBXCODERS=( ${BB_MP3ENC} ${BB_OGGENC} ${BB_OGGDEC} ${BB_FLACCMD} )
    BBMISC=( ${BB_EJECT} ${BB_NORMCMD} ${BB_MP3DEC} sudo )

    bb_not_found_apps=0
    pretty_top
    dashed_line
    echo -e "${BBTABLECOLOR}${BBSUBCOLOR}$bb_cp_5"
    top_info_line
    echo -e "${BBTABLECOLOR}|>${BBMAINCOLOR}$bb_cp_6${BBCOLOROFF}"
    i_check_path $tempfn "${BBBURNING[@]}"
    echo -e "${BBTABLECOLOR}|>${BBMAINCOLOR}$bb_cp_7${BBCOLOROFF}"
    i_check_path $tempfn "${BBRIPPERS[@]}"
    echo -e "${BBTABLECOLOR}|>${BBMAINCOLOR}$bb_cp_8${BBCOLOROFF}"
    i_check_path $tempfn "${BBXCODERS[@]}"
    echo -e "${BBTABLECOLOR}|>${BBMAINCOLOR}$bb_cp_9${BBCOLOROFF}"
    i_check_path $tempfn "${BBMISC[@]}"
    echo

    # Only output this if some apps were not found.
    # We don't want to scare people unless necessary :-)
    if (( bb_not_found_apps )) 
    then
	top_info_line
	echo -e "${BBHEADCOLOR}$bb_cp_10\n$bb_cp_11${BBCOLOROFF}"
        dashed_line
    fi
	message

    rm $tempfn
}