Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Add support to bind files
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnoSparks committed Jul 17, 2017
1 parent c389e63 commit fe9b491
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system/bin/tsbinds
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fe9b491

Please sign in to comment.