summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorTomasz Kramkowski <tomasz@kramkow.ski>2023-01-30 13:01:23 +0000
committerTomasz Kramkowski <tomasz@kramkow.ski>2023-01-30 13:01:23 +0000
commitdaf57f99f22cd105bf274cb856ae8e198388748e (patch)
tree4ee059ad9f0931aeca2ae2f16e6dda8ba1dca287 /install
parent55ec80729147b4c948dc0919569451ac40d2e7ba (diff)
downloadpam_usercg_rust-daf57f99f22cd105bf274cb856ae8e198388748e.tar.gz
pam_usercg_rust-daf57f99f22cd105bf274cb856ae8e198388748e.tar.xz
pam_usercg_rust-daf57f99f22cd105bf274cb856ae8e198388748e.zip
install: allow mode to be specified
Diffstat (limited to 'install')
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index f35979a..f7d25e8 100755
--- a/install
+++ b/install
@@ -1,2 +1,2 @@
#!/bin/sh
-install -Dm755 target/debug/libpam_usercg.so "${DESTDIR}${PREFIX:-/usr/local}/lib/security/pam_usercg.so"
+install -Dm755 "target/${MODE:-debug}/libpam_usercg.so" "${DESTDIR}${PREFIX:-/usr/local}/lib/security/pam_usercg.so"