config typo
This commit is contained in:
13
files/cclip
13
files/cclip
@@ -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 ]] || {
|
||||||
|
|||||||
Reference in New Issue
Block a user