From fe9b491c54b8e23c3e5057545541b979b05a2b8f Mon Sep 17 00:00:00 2001 From: TechnoSparks Date: Tue, 18 Jul 2017 07:10:12 +0800 Subject: [PATCH] Add support to bind files --- system/bin/tsbinds | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/system/bin/tsbinds b/system/bin/tsbinds index ff090ae..a512075 100644 --- a/system/bin/tsbinds +++ b/system/bin/tsbinds @@ -84,11 +84,11 @@ elif [ "$1" == "bind" ]; then function folderbind { if grep -q "$3" /proc/mounts; then tslog "$1 is already binded" - elif [ ! -d "$2" ]; then - tslog "Bind aborted: Folder '$2' on SD CARD doesn't exist!" + elif [ ! -d "$2" ] && [ ! -f "$2" ]; then + tslog "Bind aborted: Folder '$2' as source doesn't exist!" return 1 - elif [ ! -d "$3" ]; then - tslog "Bind aborted: Folder '$3' on INTERNAL STORAGE doesn't exist!" + elif [ ! -d "$3" ] && [ ! -f "$3" ]; then + tslog "Bind aborted: Folder '$3' as target doesn't exist!" return 1 else mount -o bind "$2" "$3" && tslog "Bind successful: $1" || tslog "Bind failed: $1"