insert data only if folder missing
This commit is contained in:
@@ -33,10 +33,11 @@ _help() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_load_config(){
|
_load_config() {
|
||||||
STORAGE=${CCLIP_HOME:-~/.cache/cclip}
|
STORAGE=${CCLIP_HOME:-~/.cache/cclip}
|
||||||
mkdir -p "$STORAGE"
|
[[ -d "$STORAGE" ]] || {
|
||||||
[[ -e "$STORAGE"/0 ]] || {
|
_msg "Creating $STORAGE folder, and inserting sample data"
|
||||||
|
mkdir -p "$STORAGE"
|
||||||
echo Sample data | _write_stdin 0
|
echo Sample data | _write_stdin 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user