瀏覽代碼

exit migration if demod.py exists (i.e. migration done before)

tags/v1.7
Nico Rey 3 年之前
父節點
當前提交
ab8107931e
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      migrations/20201292-iss.sh

+ 5
- 0
migrations/20201292-iss.sh 查看文件

@@ -11,6 +11,11 @@ fi
. "$HOME/.noaa.conf"
. "$NOAA_HOME/common.sh"

if [ -f "$NOAA_HOME/demod.py" ]; then
log "Seems like you already have run this migration before" "ERROR"
exit 1
fi

if [ ! -f "$NOAA_HOME/panel.db" ]; then
log "Seems like there's no panel.db database in your project folder" "ERROR"
exit 1


Loading…
取消
儲存