We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25843b0 commit 3147817Copy full SHA for 3147817
pup.sh
@@ -11,7 +11,9 @@ main() {
11
DIR=$(pwd)
12
PUP=""
13
while [ "$DIR" != "/" ]; do
14
- [[ -f "$DIR/pixi.toml" ]] && PIXI_TOML="$DIR/pixi.toml"
+ if [ -f "$DIR/pixi.toml" ]; then
15
+ PIXI_TOML="$DIR/pixi.toml"
16
+ fi
17
if [ -f "$DIR/pup.py" ]; then
18
PUP="$DIR/pup.py"
19
PUP_HOME="$DIR"
@@ -55,7 +57,9 @@ install() {
55
57
if [ "$(ls -A)" != "" ]; then
56
58
read -ei "y" -p \
59
"$(pwd) is not empty; do you want to make it puppy's home? (y/n): "
- [[ "$REPLY" == "n" ]] && exit 1
60
+ if [ "$REPLY" == "n" ]; then
61
+ exit 1
62
63
fi
64
get_pixi
65
pixi_init
0 commit comments