Skip to content

Commit 046288c

Browse files
committed
make packaging easier by checking for existing dir
1 parent b1c29a2 commit 046288c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

binutils.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ if [ "$1" = 'clean' ]; then
2424
exit
2525
fi
2626

27-
# Download binutils.
28-
if [ ! -f "$BINUTILS_XZ" ]; then
29-
wget "$BINUTILS_URL"
30-
fi
31-
3227
# Extract binutils.
3328
if [ ! -d "$BINUTILS_DIR" ]; then
34-
tar xf "$BINUTILS_XZ"
29+
30+
# Download binutils.
31+
if [ ! -f "$BINUTILS_XZ" ]; then
32+
wget "$BINUTILS_URL"
33+
fi
34+
35+
tar xf "$BINUTILS_XZ"
3536
fi
3637

3738
# Compile binutils.

0 commit comments

Comments
 (0)