浏览代码

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


正在加载...
取消
保存