Improve script
This commit is contained in:
parent
dc6d401815
commit
754b163c6b
10
install.sh
10
install.sh
|
@ -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 \
|
||||||
|
|
Loading…
Reference in New Issue