Merge pull request #1 from ElXreno/patch-1

Little installer improvments
This commit is contained in:
Felix Schröter 2020-04-28 23:27:47 +02:00 committed by GitHub
commit 7247e27da8

View file

@ -1,5 +1,7 @@
#!/bin/sh
set -e
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
@ -10,6 +12,7 @@ CONFIG=$1
if [ -z "$CONFIG" ]
then
echo "path to config to use as configuration.nix needs to be passed as first argument"
exit 1
else
echo "using configuration: '$CONFIG'"
fi