add -P to invocation of df(1) to ensure expected output format
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 May 2011 23:41:33 +0000 (23:41 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 26 May 2011 23:41:33 +0000 (23:41 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9604 d708f5d6-7413-0410-9779-e7cbd77b26cf

tools/linux_packaging/stage2.run

index 7075e52c35a3e1bfd9004764ce9407f420db6893..1c1d7207265660834044a825690678afc78cfa5d 100755 (executable)
@@ -196,7 +196,7 @@ else
        REQUIRED_BYTES=$(cat .${PGM_NAME}_${ARCH}-*.size)
 
        #Check space in current folder
-       FREE_BYTES=$(df -B 1 ${PKG_PATH} | grep / | awk '{print $4}')
+       FREE_BYTES=$(df -P -B 1 ${PKG_PATH} | grep / | awk '{print $4}')
 
        if [ ${FREE_BYTES} -le ${REQUIRED_BYTES} ] ; then
                echo ""