openmemo 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/openmemo +12 -1
  2. package/package.json +1 -1
package/bin/openmemo CHANGED
@@ -1,7 +1,18 @@
1
1
  #!/bin/sh
2
2
  set -e
3
3
 
4
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
4
+ # Resolve symlinks to get the actual script location
5
+ SCRIPT="$0"
6
+ while [ -L "$SCRIPT" ]; do
7
+ SCRIPT_DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
8
+ SCRIPT="$(readlink "$SCRIPT")"
9
+ # Handle relative symlinks
10
+ case "$SCRIPT" in
11
+ /*) ;;
12
+ *) SCRIPT="$SCRIPT_DIR/$SCRIPT" ;;
13
+ esac
14
+ done
15
+ SCRIPT_DIR="$(cd "$(dirname "$SCRIPT")" && pwd)"
5
16
 
6
17
  OS="$(uname -s | tr '[:upper:]' '[:lower:]')"
7
18
  ARCH="$(uname -m)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmemo",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "OpenTUI-based memo app inspired by mattn/memo",
5
5
  "bin": {
6
6
  "openmemo": "bin/openmemo"