mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
17 lines
334 B
Bash
17 lines
334 B
Bash
#!/bin/sh
|
|
|
|
cd `dirname "$0"`
|
|
|
|
if ! zip --version | grep Info-ZIP >/dev/null; then
|
|
echo >&2 `basename "$0"`: error: this only works with Info-ZIP.
|
|
exit -1
|
|
fi
|
|
|
|
if [ -r cardsfolder.zip ]; then
|
|
echo Updating cardsfolder.zip...
|
|
else
|
|
echo Creating cardsfolder.zip...
|
|
fi
|
|
|
|
find . -name '*.txt' -print | zip -1@ouX cardsfolder.zip
|