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

Commit

Permalink
1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnoSparks committed Aug 19, 2017
1 parent 880c04b commit c12c65c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ ts-binds also provides a few useful terminal functions that you can use to your
- [→ DOWNLOAD](https://github.com/TechnoSparks/ts-binds/releases)
- [XDA Developers thread](https://forum.xda-developers.com/apps/magisk/module-ts-binds-t3628856)
- [GitHub](https://github.com/TechnoSparks/ts-binds)
- [Changelogs](https://github.com/TechnoSparks/ts-binds/releases)
- [Changelogs](https://github.com/Magisk-Modules-Repo/ts-binds/releases)
2 changes: 1 addition & 1 deletion common/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ tsbinds update

# Barrier, do not continue until SD card is mounted ----
until [ $sdstatus == "1" ]; do
if sdname=$($(grep -m 1 "/mnt/media_rw/" /proc/mounts) | grep -m 1 -Eo "[0-9A-Z]{4}-[0-9A-Z]{4}"); then
if sdname=$(grep -m 1 "/mnt/media_rw/" /proc/mounts | grep -m 1 -Eo "[0-9A-Z]{4}-[0-9A-Z]{4}"); then
sdstatus=1
tslog "sdcard $sdname mounted"
else
Expand Down
6 changes: 3 additions & 3 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=ts-binds
name=ts-binds
version=1.0.5-beta
versionCode=4
version=1.0.5
versionCode=8
author=TechnoSparks
description=ts-binds binds two different folders on your device so that both share the same contents
description=ts-binds binds two different folders on your device so that both folders share the same contents
template=4
10 changes: 7 additions & 3 deletions system/bin/tsbinds
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ fi
# Functions ----------------------------------------------
MODDIR=/magisk/ts-binds
int=/data/media/0
sd=/mnt/media_rw/
sd=$(grep -m 1 -Eo "/mnt/media_rw/[0-9A-Z]{4}-[0-9A-Z]{4}" /proc/mounts)
folderlist=$MODDIR/cached-folderlist.sh
folderlistuser=$int/ts-binds-folderlist.txt
logfile=$int/ts-binds.log
sdname=$($(grep -m 1 "/mnt/media_rw/" /proc/mounts) | grep -m 1 -Eo "[0-9A-Z]{4}-[0-9A-Z]{4}")
sd=$sd$sdname
function printhelp {
echo "tsbinds [options] [arg]"
echo ""
Expand Down Expand Up @@ -61,6 +59,7 @@ function printhelp {
echo " mounting on boot"
echo "enable ............. Enables automatic "
echo " mounting on boot"
echo "log ................ Prints out the log"
echo ""
echo "Note: running the command reinit, and unbind, move with \"all\" argument may return \"unmount\" errors. Most of the time they can be safely ignored."
}
Expand Down Expand Up @@ -222,6 +221,11 @@ elif [ "$1" == "enable" ]; then
rm -f $MODDIR/disable.txt
tslog "ts-binds automatic bind enabled"

# Print log ----------------------------------------------
elif [ "$1" == "log" ]; then
cat $logfile
echo ""

# Action unrecognised ------------------------------------
else
echo "E: Unknown action \"$1\" supplied"
Expand Down

0 comments on commit c12c65c

Please sign in to comment.