create configured directory and file

dev
Joe 3 years ago
parent 237ae23bc2
commit 4c10896d12
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
  1. 6
      ysm.sh

@ -25,9 +25,9 @@ do
done < ${config[path]}/ysm.conf
CreateFiles() {
if [ ! -d "$default_path" ]; then
mkdir $HOME/.ysess
touch $HOME/.ysess/last.name
if [ ! -d ${config[path]} ]; then
mkdir ${config[path]}
touch ${config[path]}/${config[name]}
fi
}

Loading…
Cancel
Save