Skip to content

Commit 3147817

Browse files
committed
[[ -> [ to make /bin/sh in Docker happy; allgha
1 parent 25843b0 commit 3147817

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pup.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ main() {
1111
DIR=$(pwd)
1212
PUP=""
1313
while [ "$DIR" != "/" ]; do
14-
[[ -f "$DIR/pixi.toml" ]] && PIXI_TOML="$DIR/pixi.toml"
14+
if [ -f "$DIR/pixi.toml" ]; then
15+
PIXI_TOML="$DIR/pixi.toml"
16+
fi
1517
if [ -f "$DIR/pup.py" ]; then
1618
PUP="$DIR/pup.py"
1719
PUP_HOME="$DIR"
@@ -55,7 +57,9 @@ install() {
5557
if [ "$(ls -A)" != "" ]; then
5658
read -ei "y" -p \
5759
"$(pwd) is not empty; do you want to make it puppy's home? (y/n): "
58-
[[ "$REPLY" == "n" ]] && exit 1
60+
if [ "$REPLY" == "n" ]; then
61+
exit 1
62+
fi
5963
fi
6064
get_pixi
6165
pixi_init

0 commit comments

Comments
 (0)