Skip to content

Commit 7b1bceb

Browse files
remame login to p_login
p_login makes more sense cause p_login sound like proot login where login is login - refactored a test script
1 parent 9733d85 commit 7b1bceb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

udroid/src/proot-utils/proot-utils.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ is_valid_rootfs() {
5050
} && return 0 || return 1
5151
}
5252

53-
login() {
53+
p_login() {
5454
# OPTIONS:
5555
# --disable-special-mounts
5656
# --disable-auto-init

udroid/test/test_mount.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PROOTD_DIR="$TERMUX_ROOT/usr/var/lib/proot-distro/installed-rootfs"
99
source ../src/proot-utils/proot-utils.sh
1010

1111
# works only with udroid-impish-xfce4 for now
12-
if (login --path ${PROOTD_DIR}/udroid-impish-xfce4 -- echo "Hello"); then
12+
if (p_login --path ${PROOTD_DIR}/udroid-impish-xfce4 -- echo "Hello"); then
1313
echo "[TEST] Login successful"
1414
[[ -n $RETURN_ON_FAILURE ]] && return 0
1515
else

0 commit comments

Comments
 (0)