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
|
SILENT=false
|
||||||
|
|
||||||
# Parse flags
|
# Parse flags
|
||||||
for arg in "$@"; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$arg" in
|
case "$1" in
|
||||||
-y|--yes) SILENT=true ;;
|
-y|--yes) SILENT=true ;;
|
||||||
|
--version)
|
||||||
|
shift
|
||||||
|
MEMOH_VERSION="$1"
|
||||||
|
;;
|
||||||
|
--version=*)
|
||||||
|
MEMOH_VERSION="${1#--version=}"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
# Auto-silent if no TTY available
|
# Auto-silent if no TTY available
|
||||||
|
|||||||
Reference in New Issue
Block a user