Reduce output duplication and add install scripts

This commit is contained in:
2026-06-09 05:44:42 +00:00
parent 9f29755f0a
commit 70e3dd3cc5
10 changed files with 149 additions and 47 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -eu
INSTALL_DIR="${OPENSTOCK_INSTALL_DIR:-$HOME/.local/bin}"
BIN_NAME="${OPENSTOCK_BIN_NAME:-openstock}"
TARGET="$INSTALL_DIR/$BIN_NAME"
if [ -e "$TARGET" ]; then
rm -f "$TARGET"
echo "removed: $TARGET"
else
echo "not installed: $TARGET"
fi
echo "config and cache are preserved at: ${OPENSTOCK_CONFIG_DIR:-$HOME/.config/openstock}"
echo "remove them manually only if you no longer need credentials or cached data."