We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebbb4b6 commit 927cfcbCopy full SHA for 927cfcb
iko/install.sh
@@ -0,0 +1,23 @@
1
+#!/bin/sh
2
+
3
+set -euo pipefail
4
5
+INSTALL_DIR="$HOME/.local/bin"
6
+WRAPPER="$INSTALL_DIR/iko"
7
8
+mkdir -p "$INSTALL_DIR"
9
10
+cat > "$WRAPPER" <<'EOF'
11
12
+docker run --rm -it -v "${PWD}/migrations:/repo:rw" -v "${PWD}/scripts:/scripts:ro" ghcr.io/explodinglabs/iko:0.1.0 "$@"
13
+EOF
14
15
+chmod +x "$WRAPPER"
16
17
+if ! echo "$PATH" | grep -q "$INSTALL_DIR"; then
18
+ echo "✅ Installed iko to $WRAPPER"
19
+ echo "⚠️ Warning: $INSTALL_DIR is not in your PATH. Add this to your shell profile:"
20
+ echo 'export PATH="$HOME/.local/bin:$PATH"'
21
+else
22
+ echo "✅ Installed iko. You can now run: iko"
23
+fi
0 commit comments