mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(script): fix match '~' to avoid expansion
This commit is contained in:
+2
-2
@@ -117,8 +117,8 @@ if [ "$SILENT" = false ]; then
|
|||||||
read -r input < /dev/tty || true
|
read -r input < /dev/tty || true
|
||||||
if [ -n "$input" ]; then
|
if [ -n "$input" ]; then
|
||||||
case "$input" in
|
case "$input" in
|
||||||
~) WORKSPACE="${HOME:-/tmp}" ;;
|
"~") WORKSPACE="${HOME:-/tmp}" ;;
|
||||||
~/*) WORKSPACE="${HOME:-/tmp}${input#\~}" ;;
|
"~"/*) WORKSPACE="${HOME:-/tmp}${input#\~}" ;;
|
||||||
*) WORKSPACE="$input" ;;
|
*) WORKSPACE="$input" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user