Skip to content

Commit df42300

Browse files
committed
feat: gambling
1 parent 11c99ee commit df42300

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

scripts/commands/extensions/install.sh

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,7 @@ InstallExtension() {
3434

3535
if [[ ! -f "$FILE" ]]; then PRINT FATAL "$FILE could not be found or detected.";return 2;fi
3636

37-
ZIP="${n}.zip"
38-
cp "$FILE" ".blueprint/tmp/$ZIP"
39-
cd ".blueprint/tmp" || cdhalt
40-
unzip -o -qq "$ZIP"
41-
rm "$ZIP"
42-
if [[ ! -f "$n/*" ]]; then
43-
cd ".." || cdhalt
44-
rm -R "tmp"
45-
mkdir -p "tmp"
46-
cd "tmp" || cdhalt
47-
48-
mkdir -p "./$n"
49-
cp "../../$FILE" "./$n/$ZIP"
50-
cd "$n" || cdhalt
51-
unzip -o -qq "$ZIP"
52-
rm "$ZIP"
53-
cd ".." || cdhalt
54-
fi
37+
extract_extension
5538
fi
5639

5740
((PROGRESS_NOW++))

0 commit comments

Comments
 (0)