mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 14:12:16 +03:00
17 lines
314 B
Bash
17 lines
314 B
Bash
|
#!/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
|