The scripts, such as encrypt.sh, won't run unless actually standing in the
jasypt/bin directory. The reason is that the $PWD variable is used in the
path. By making a small change, the scripts can be run from anywhere:
Before:
CURRENT_DIR=$PWD
After:
CURRENT_DIR=${0%/*}
For a more detailed explanation of "${parameter%word}", see the man-page
for 'sh', section "Parameter Expansion".
Examples can be found here:
http://docs.hp.com/en/B2355-90046/ch19s03.html
Nobody/Anonymous
None
None
Public
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use