17 lines
285 B
Bash
Executable File
17 lines
285 B
Bash
Executable File
#!/bin/sh
|
|
cd "$(dirname "$0")"
|
|
|
|
[ -z "$1" ] && echo 'usage: ./install <PROFILE>' && 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 \
|
|
--creds user_credentials.json
|