mirror of
https://github.com/arthenica/ffmpeg-kit.git
synced 2026-06-06 20:27:34 +00:00
create linux bundles under the prebuilt directory
This commit is contained in:
+19
-2
@@ -2384,8 +2384,8 @@ to_capital_case() {
|
||||
# 2. destination file
|
||||
#
|
||||
overwrite_file() {
|
||||
rm -f "$2"
|
||||
cp "$1" "$2"
|
||||
rm -f "$2" 2>>"${BASEDIR}"/build.log
|
||||
cp "$1" "$2" 2>>"${BASEDIR}"/build.log
|
||||
}
|
||||
|
||||
#
|
||||
@@ -2438,3 +2438,20 @@ command_exists() {
|
||||
echo 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# 1. folder path
|
||||
#
|
||||
initialize_folder() {
|
||||
rm -rf "$1" 1>>"${BASEDIR}"/build.log 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
mkdir -p "$1" 1>>"${BASEDIR}"/build.log 2>&1
|
||||
if [[ $? -ne 0 ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user