mirror of
https://codeberg.org/scip/pcp.git
synced 2026-02-04 15:10:59 +01:00
-i is now optional for encryption if recipient specified, -R exchanged with -r, added virtual env for manual tests in tests/env/
This commit is contained in:
24
tests/env/vsh
vendored
Executable file
24
tests/env/vsh
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# simple virtual env to do manual tests of pcp
|
||||
# using different users.
|
||||
|
||||
user=$1
|
||||
|
||||
if test -z "$user"; then
|
||||
echo "usage: $0 <user>"
|
||||
exit
|
||||
fi
|
||||
|
||||
user=`echo "$user" | sed 's/\///g'`
|
||||
|
||||
if ! test -d "$user"; then
|
||||
echo "there's no directory for $user"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
cur=`pwd`
|
||||
home="$cur/$user"
|
||||
|
||||
exec env PCP="$cur/../../src/pcp1" USER=$user HOME=$home bash --rcfile "$cur/bashrc"
|
||||
Reference in New Issue
Block a user