Do not link cache dir as it may already exist (#6358)

use bash with extglob to not match one result

closes koreader/koreader#6357
This commit is contained in:
yparitcher
2020-07-09 02:39:36 -04:00
committed by GitHub
parent 8324154177
commit d6b820fd5a

View File

@@ -81,7 +81,7 @@ else
cp -f $(KOR_BASE)/ev_replay.py $(INSTALL_DIR)/koreader/
@echo "[*] create symlink instead of copying files in development mode"
cd $(INSTALL_DIR)/koreader && \
ln -sf ../../$(KOR_BASE)/$(OUTPUT_DIR)/* .
bash -O extglob -c "ln -sf ../../$(KOR_BASE)/$(OUTPUT_DIR)/!(cache) ."
@echo "[*] install front spec only for the emulator"
cd $(INSTALL_DIR)/koreader/spec && test -e front || \
ln -sf ../../../../spec ./front