We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e3515 commit c0d48cfCopy full SHA for c0d48cf
retroarch-release.sh
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
-# vim: set ts=3 sw=3 noet ft=sh : bash
3
-# RetroArch packaging script
+# vim: set ts=3 sw=3 noet ft=sh : sh
+# RetroArch packaging script for release tarballs
4
5
PRGNAM=RetroArch
6
SRCNAM="$(printf %s $PRGNAM | tr '[:upper:]' '[:lower:]')"
@@ -10,7 +10,15 @@ TMP=${TMP:-/tmp/libretro}
10
set -eu
11
12
# Ensure a clean and fully updated repo
13
-[ -d $SRCNAM ] && rm -rf -- $SRCNAM
+if [ -d $SRCNAM ]; then
14
+ printf %s\\n "WARNING: The $PRGNAM directory already exists." \
15
+ "Remove the $PRGNAM directory and continue? (y/n)" >&2
16
+ read -r answer
17
+ case "$answer" in
18
+ [yY]|[yY][eE][sS] ) rm -rf -- $SRCNAM ;;
19
+ * ) printf %s\\n 'Exiting ...'; exit 0 ;;
20
+ esac
21
+fi
22
23
./libretro-fetch.sh $SRCNAM
24
0 commit comments