1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-12 19:09:56 +03:00
pmbootstrap/helpers/envsetup.sh
BK d79e13d226 Add helpers/envsetup.sh (#1390)
Usage:
$ source helpers/envsetup.sh
It sets up the aliases `pmbootstrap` and `pmbroot`.
The latter changes the directory to the pmbootstrap folder.
2018-04-08 12:58:10 +00:00

11 lines
283 B
Bash

#! /bin/sh -e
if [ -e "pmbootstrap.py" ]; then
PMB_PATH=$(pwd)
# shellcheck disable=SC2139
alias pmbroot="cd \"$PMB_PATH\""
# shellcheck disable=SC2139
alias pmbootstrap="$PMB_PATH/pmbootstrap.py"
else
echo "ERROR: Please source this from the pmbootstrap folder."
return 1
fi