summaryrefslogtreecommitdiff
path: root/scripts/cut.sh
blob: 3b4a1dbac9103c390e96290fc63604fdecdfb62c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# Copy FSK protection of the PIN plugin when cutting a protected recording
#

if [ $1 == "edited" ]; then
    target_recording="$2"
    source_recording=`echo $2 | sed s/"%"/""/ `
    protection_file="$source_recording/protection.fsk"
    
    if [ -e "$protection_file" ]; then
        cp "$protection_file" "$target_recording/"
    fi
fi