This file is indexed.

/usr/share/worker/scripts/cd2flac.sh is in worker-data 3.8.2-1.

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

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
#! /bin/bash
# Example script for use with worker
# converts CD tracks to other formats
# based on scripts by Giulio Canevari <giuliogiuseppecarlo@interfree.it>

if [ "$#" -lt "1" ]; then
  echo "$0 <title1> ..."
  exit 5
fi

case "`basename $0`" in
  cd2flac*)
    MODE="flac"
    PROGS="cdparanoia normalize flac"
    ;;
  cd2mp3*)
    MODE="mp3"
    PROGS="cdparanoia normalize lame"
    ;;
  cd2ogg*)
    MODE="ogg"
    PROGS="cdparanoia normalize oggenc"
    ;;
  *)
    MODE="wav"
    PROGS="cdparanoia normalize"
    ;;
esac

for i in $PROGS; do
  if [ -z "`which $i 2>/dev/null`" ]; then
    echo "You need $i to run this script!"
    exit 5
  fi
done

if [ -z "$TMP" ]; then
  TMP=/tmp
fi

for T in $*; do
  while true; do
    TF="$TMP/worker-$$-$RANDOM.wav"
    if [ ! -e "$TF" ]; then
      touch "$TF"
      chmod 0600 "$TF"
      break
    fi
  done
  cdparanoia $T "$TF"
  normalize "$TF"
  case "$MODE" in
    flac)
      flac --best "$TF" -o Track-$T.flac
      ;;
    mp3)
      lame -b 256 "$TF" Track-$T.mp3
      ;;
    ogg)
      oggenc -q 8 "$TF" -o Track-$T.ogg
      ;;
    *)
      mv "$TF" Track-$T.wav
      ;;
  esac
  rm -f "$TF"
done