Skip to content

Commit

Permalink
Update upload.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fadlyas07 authored Nov 20, 2022
1 parent 6297b87 commit 1894dc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# SPDX-License-Identifier: GPL-3.0-or-later

echo "PERINGATAN: Pastikan setidaknya ada 1 file dan 1 commit dalam repository Anda."
if [[ $# -eq 0 ]]; then
echo "Tidak ada parameter yang ditentukan!"
exit 1
fi

# Cara Menggunakan Skrip
# 1. (Jika belum) Unduh skrip menggunakan perintah `wget https://github.com/fadlyas07/scripts/raw/master/upload.sh`
Expand Down Expand Up @@ -62,7 +66,6 @@ if [[ -e "${TempatFile}" && -e "${GitHubRilis}" ]]; then
BuatRilisTag || echo "Tag sudah dibuat, lanjut mengunggah ${NamaFile}..."
fi
fi

if [[ $(UnggahFile) == "GAGAL Mengupload file, periksa kembali!" ]]; then
if ! [[ -f "${GitHubRilis}" ]]; then
echo "File github-release tidak ditemukan, tolong periksa kembali..." && exit
Expand Down

0 comments on commit 1894dc4

Please sign in to comment.