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}
|
||||
mkdir -p "$STORAGE"
|
||||
[[ -e "$STORAGE"/0 ]] || {
|
||||
[[ -d "$STORAGE" ]] || {
|
||||
_msg "Creating $STORAGE folder, and inserting sample data"
|
||||
mkdir -p "$STORAGE"
|
||||
echo Sample data | _write_stdin 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user