diff options
author | James | 2021-02-02 08:08:51 +0000 |
---|---|---|
committer | James | 2021-02-02 08:08:51 +0000 |
commit | 101d64978d9255f55b0c5bee09be0146f04e2785 (patch) | |
tree | 665b4f0aa3e2da5dce20f8db0b1013ab8767c640 /PKGBUILD | |
parent | dbc7a23e3a3501ff78c0aa62d7de15171f8238f4 (diff) | |
download | aur-101d64978d9255f55b0c5bee09be0146f04e2785.tar.gz |
Updated install script to handle usecase where data directory exists in fs but does not have all the expected game files
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -142,8 +142,12 @@ package() { #Then loop through package file listing and copy files into the package directory for SRC_FILE in `cat ${srcdir}/data-files.txt` do - DST_FILE=${pkgdir}/$(echo $SRC_FILE) - cp $SRC_FILE $DST_FILE + DST_FILE=${pkgdir}/$(echo $SRC_FILE) + if [ -f $SRC_FILE ]; then + cp $SRC_FILE $DST_FILE + else + echo "$SRC_FILE not found. Skipping inclusion in package." + fi done fi unzip -q "${srcdir}/engine.zip" -d "${pkgdir}/${DEST_DIR}/${ENGINE_DIR}" |