#!/bin/bash # Resolve paths from the script's own location so this works whether it is run # from the repository root or from inside scripts/. SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)" source "${REPO_ROOT}/venv/bin/activate" pip install pathspec pip install pyyaml echo " .git" >> "${REPO_ROOT}/.gitignore" python "${SCRIPT_DIR}/encrypt.py" "${REPO_ROOT}" "${REPO_ROOT}/code" --ignore "${REPO_ROOT}/.gitignore" --chunk-size 100000 sed -i '/.git/d' "${REPO_ROOT}/.gitignore" xdg-open "${REPO_ROOT}"