aboutsummaryrefslogtreecommitdiff
path: root/crypt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'crypt.sh')
-rwxr-xr-xcrypt.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypt.sh b/crypt.sh
index b904d76..3a593a5 100755
--- a/crypt.sh
+++ b/crypt.sh
@@ -281,7 +281,10 @@ load_entries() {
for w in "${arr[@]}"; do
IFS='=' read -r k v <<< "$w"
opts["$k"]="${v:-none}"
- [[ "${opts[$k]}" == $'"'* ]] && opts["$k"]="${opts[$k]:1:-1}" # Strip quotes
+ case "${opts[$k]}" in
+ $'"'*|$'\''*) opts["$k"]="${opts[$k]:1:-1}" ;;
+ # TODO: Fix string parsing
+ esac
done
[ -z "${opts[name]}" ] && error "Extension not given for entry #$i"