last fixes master
authorMazet Laurent <mazet@softndesign.org>
Tue, 12 Dec 2023 22:32:41 +0000 (23:32 +0100)
committerMazet Laurent <mazet@softndesign.org>
Tue, 12 Dec 2023 22:32:41 +0000 (23:32 +0100)
iso2ps2

diff --git a/iso2ps2 b/iso2ps2
index e7a76998290f6d06a45975a89f033565a2b426ca..f3bba93510fa2d4122292ab97e0ef4f0ed838e7d 100755 (executable)
--- a/iso2ps2
+++ b/iso2ps2
@@ -29,7 +29,7 @@ id=0
 # init
 file="$1"
 [ -f "$file" ] || fail "can't find file"
-[ "$(file $file | grep UDF)" ] || fail "file is not an UDF iso"
+file "$file" | grep -q UDF || fail "file is not an UDF iso"
 
 # get serial
 serial=$(isoinfo -f -i "$file" | \
@@ -180,6 +180,7 @@ $PS2CLASSIC e cex $serial/ps2.key "$file" $serial/USRDIR/ISO.BIN.ENC ISO.BIN.ENC
 # create package
 title "create package"
 $PSNPACKAGE $serial || fail "can't create package"
+mv $serial/$cid.pkg .
 
 # create rap file
 title "create rap file"