config typo

This commit is contained in:
2018-08-13 18:57:39 +03:00
parent f94055a652
commit a3f7f858ff

View File

@@ -29,14 +29,15 @@ _help() {
_load_config(){ _load_config(){
STORAGE=~/.cache/qclip STORAGE=~/.cache/cclip
CONFIG=~/.config/cclip/config
[[ -f ~/.config/qclip/config ]] || { [[ -f "$CONFIG" ]] || {
mkdir -p ~/.config/qclip mkdir -p $( dirname "$CONFIG" )
echo STORAGE=$STORAGE > ~/.config/qclip/config echo STORAGE=$STORAGE > "$CONFIG"
_msg "created config in ~/.config/qclip/config" _msg "created config in "$CONFIG""
} }
[[ -f ~/.config/qclip/config ]] && . ~/.config/qclip/config [[ -f "$CONFIG" ]] && . "$CONFIG"
# TODO, run line by line for security, get only lines with matching config item # TODO, run line by line for security, get only lines with matching config item
mkdir -p "$STORAGE" mkdir -p "$STORAGE"
[[ -e "$STORAGE"/0 ]] || { [[ -e "$STORAGE"/0 ]] || {