Share

jasypt: java simplified encryption

Tracker: Bugs

5 Scripts don't work when ran outside of bin directory - ID: 2404059
Last Update: Tracker Item Submitted ( ulsa )

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


Ulrik Sandberg ( ulsa ) - 2008-12-07 19:17

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.