Fix for Arch

This commit is contained in:
Raymond Li 2020-08-04 17:55:51 -04:00
parent 770006421e
commit 02334d35ae
No known key found for this signature in database
GPG Key ID: A014EA89B62BBB1B
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ i3lock
tags
*.swp
*.gz
/pam/i3lock
################################################################################
# https://raw.githubusercontent.com/github/gitignore/master/Autotools.gitignore

View File

@ -1,9 +1,9 @@
#!/bin/bash
autoreconf -fiv
if [[ -f /etc/arch-release ]]
sed -i "/^#auth include system-auth/auth include system-auth" pam/i3lock
sed -i "/^auth include login/#auth include login" pam/i3lock
if [[ -f /etc/arch-release ]]; then
sed -i "s/^#auth include system-auth/auth include system-auth/g" pam/i3lock
sed -i "s/^auth include login/#auth include login/g" pam/i3lock
fi
BUILD_DIR=build/