mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(script): cannot use a specific version
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"WebFetch(domain:github.com)",
|
||||
"Bash(git log:*)",
|
||||
"Bash(find:*)",
|
||||
"Bash(grep:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
+10
-2
@@ -13,10 +13,18 @@ DIR="Memoh"
|
||||
SILENT=false
|
||||
|
||||
# Parse flags
|
||||
for arg in "$@"; do
|
||||
case "$arg" in
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
-y|--yes) SILENT=true ;;
|
||||
--version)
|
||||
shift
|
||||
MEMOH_VERSION="$1"
|
||||
;;
|
||||
--version=*)
|
||||
MEMOH_VERSION="${1#--version=}"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
# Auto-silent if no TTY available
|
||||
|
||||
Reference in New Issue
Block a user