Skip to content

Commit f59a03d

Browse files
committed
Fixing argon on Xenial
1 parent ca1d8bd commit f59a03d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

bin/install-password-argon2

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ if [[ ! $VERSION =~ ^master$ ]] && [[ "$(printf "7.2\n$VERSION" | sort -V | head
99
exit 0
1010
fi
1111

12-
LIBARGON2_INSTALL_DIR=$HOME/.phpenv/versions/$VERSION
12+
13+
if [[ $VERSION =~ ^8.1 ]]; then
14+
LIBARGON2_INSTALL_DIR=/usr
15+
else
16+
LIBARGON2_INSTALL_DIR=$HOME/.phpenv/versions/$VERSION
17+
fi
18+
1319

1420
git clone https://github.com/P-H-C/phc-winner-argon2.git libargon2
1521

0 commit comments

Comments
 (0)