update backup script

add source directory exist detection
This commit is contained in:
DefectingCat
2023-12-05 21:36:18 +08:00
parent 7bb873aff2
commit 9b9e07c1d1
3 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,6 @@
#!/bin/bash
export XDG_RUNTIME_DIR=/tmp/$UID
if [ ! -d $XDG_RUNTIME_DIR ]; then
mkdir /tmp/$UID
fi