JakeWharton/mkvdts2ac3 — Issue #66: Check to see if the two files are on the same device not working
Author: Mnementh
Created: 2012-01-14 21:45:08+00:00
State: open

the checks of DSTFILEDEVICES and NEWFILEDEVICES does not work on linux systems with line wraps in df. (long device names) ie

--( dan@media2 )--(01/14/12_02:38:30 PM)--( /nb5/NewMovies )-- :)
--(/nb5 60%)--$ df Cowboys.Aliens.\(2011\)/Cowboys.Aliens-720P.mkv
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/nb5_vg-lvnb5
2854762560 1692929200 1161833360 60% /nb5

have to change the checks to add -P to the df command, ie

\# Check to see if the two files are on the same device
NEWFILEDEVICE=$(\df -P "$WD" | tail -1 | cut -d" " -f1)
DSTFILEDEVICE=$(\df -P "$DEST" | tail -1 | cut -d" " -f1)

-P passes posix compliant output. Need to find out if df on all systems supports -P