From 36f35f7973be263f5ad51676054c86c8edb81639 Mon Sep 17 00:00:00 2001 From: Eduardo Moreno Date: Wed, 12 Aug 2020 18:23:20 +0200 Subject: [PATCH] BUGFIX. Bad detection of home directory. --- py_backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py_backup.sh b/py_backup.sh index 35a411a..dd95fbb 100755 --- a/py_backup.sh +++ b/py_backup.sh @@ -28,7 +28,7 @@ fi . /etc/profile # Creating home directory for config -if [ ! -f /media/data/local/home/.py_backup ] ; then +if [ ! -d /media/data/local/home/.py_backup ] ; then mkdir /media/data/local/home/.py_backup cp config.ini /media/data/local/home/.py_backup fi