[projects/pld-ftp-admin] shell/bashrc: make unlocktree an alias of pfa-unlocktree

arekm arekm at pld-linux.org
Sat Oct 24 11:46:24 CEST 2026


commit afc74233cc200d0962d77138634bddce4b591c69
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Oct 20 16:38:17 2026 +0200

    shell/bashrc: make unlocktree an alias of pfa-unlocktree
    
    The function needed the python in PATH to be Python 3.

 shell/bashrc | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/shell/bashrc b/shell/bashrc
index 09ca3f5..b8af2ad 100644
--- a/shell/bashrc
+++ b/shell/bashrc
@@ -8,6 +8,7 @@ alias signpkg=~/pld-ftp-admin/bin/pfa-signpkg
 alias mvpkg=~/pld-ftp-admin/bin/pfa-mvpkg
 alias testmvpkg=~/pld-ftp-admin/bin/pfa-testmvpkg
 alias lintpkg=~/pld-ftp-admin/bin/pfa-lintpkg
+alias unlocktree=~/pld-ftp-admin/bin/pfa-unlocktree
 
 # usual aliases to make your terminal usable
 alias ls='ls --color=auto -BFN --show-control-chars'
@@ -22,16 +23,3 @@ alias h='history $(($LINES-6))'
 if [ "$FTPADM" = "glen" ]; then
 	[ -f /usr/share/okas/bashrc ] && . /usr/share/okas/bashrc
 fi
-
-unlocktree() {
-	for tree in "$@"; do
-	(
-	cd ~/pld-ftp-admin/modules
-	python -c "
-import ftpio
-ftpio.connect()
-ftpio.unlock('$tree')
-"
-	)
-	done
-}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-ftp-admin.git/commitdiff/e14cb7d4d74f8bdd9368d9645ecaf49593cf6335



More information about the pld-cvs-commit mailing list