mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-25 01:42:02 +03:00
17 lines
314 B
Bash
Executable File
17 lines
314 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Set the directory
|
|
dir="./out/canary/make/zip/darwin/arm64"
|
|
|
|
# Get the first file
|
|
file=$(ls -1 $dir | head -n 1)
|
|
|
|
# Check if file exists and is a zip file
|
|
if [ -f "$dir/$file" ] && [ ${file: -4} == ".zip" ]
|
|
then
|
|
# Unzip the file
|
|
unzip "$dir/$file" -d "zip-out"
|
|
else
|
|
echo "No zip file found"
|
|
fi
|