소스 검색

use mktemp instead of tempfile in combined-image.sh to make it work on OS X

SVN-Revision: 17674
Jo-Philipp Wich 16 년 전
부모
커밋
f58536ff83
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      scripts/combined-image.sh

+ 2 - 2
scripts/combined-image.sh

@@ -8,8 +8,8 @@ BLKSZ=65536
 }
 }
 
 
 # Make sure provided images are 64k aligned.
 # Make sure provided images are 64k aligned.
-kern=$(tempfile)
-root=$(tempfile)
+kern=$(mktemp)
+root=$(mktemp)
 dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null
 dd if="$1" of="$kern" bs=$BLKSZ conv=sync 2>/dev/null
 dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null
 dd if="$2" of="$root" bs=$BLKSZ conv=sync 2>/dev/null