diff options
Diffstat (limited to 'scripts/cut.sh')
-rwxr-xr-x | scripts/cut.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/cut.sh b/scripts/cut.sh new file mode 100755 index 0000000..3b4a1db --- /dev/null +++ b/scripts/cut.sh @@ -0,0 +1,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 + |