diff --git a/install.sh b/install.sh index 096c4f5..69c93ae 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,15 @@ +#!/bin/sh +cd "$(dirname "$0")" + [ -z "$1" ] && echo 'usage: ./install ' && exit 1 +if [ -d "./$1" ]; then + cd "$1" +else + echo 'no such profile' + exit 1 +fi + archinstall \ --config user_configuration.json \ --disk-layout user_disk_layout.json \