Skip to content

Commit

Permalink
Fixed Support for Arch Linux amfoss#4
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbwdsh committed Oct 14, 2019
1 parent 35c864e commit 11e4814
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions attendance/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac

if [[ "$machine" = "Mac" ]];then
/usr/local/bin/python3 /Users/"$1"/.attendance/attendance.py "$1" >/tmp/stdout.log 2>/tmp/stderr.log
else
python3 /opt/attendance/attendance.py &> /opt/attendance/attendance.log

fi

0 comments on commit 11e4814

Please sign in to comment.