Improve script

This commit is contained in:
Augusto Gunsch 2022-10-21 17:24:51 +02:00
parent dc6d401815
commit 754b163c6b
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,15 @@
#!/bin/sh
cd "$(dirname "$0")"
[ -z "$1" ] && echo 'usage: ./install <PROFILE>' && exit 1 [ -z "$1" ] && echo 'usage: ./install <PROFILE>' && exit 1
if [ -d "./$1" ]; then
cd "$1"
else
echo 'no such profile'
exit 1
fi
archinstall \ archinstall \
--config user_configuration.json \ --config user_configuration.json \
--disk-layout user_disk_layout.json \ --disk-layout user_disk_layout.json \