few fix
This commit is contained in:
parent
63d48eebeb
commit
b9570a0edf
18
mybashrc
18
mybashrc
|
@ -11,7 +11,7 @@ if [ "$(id -u)" != "0" ]; then
|
|||
fi
|
||||
|
||||
transfer_vtbox_net() {
|
||||
{ curl --progress-bar --upload-file "$1" https://transfer.vtbox.net/$(basename $1) && echo ""; } | tee -a $HOME/.transfer.log && echo ""
|
||||
{ curl --progress-bar --upload-file "$1" https://transfer.vtbox.net/$(basename "$1") && echo ""; } | tee -a $HOME/.transfer.log && echo ""
|
||||
}
|
||||
|
||||
compress_pigz() {
|
||||
|
@ -23,15 +23,15 @@ decompress_pigz() {
|
|||
}
|
||||
|
||||
update_git_mybashrc() {
|
||||
if [ -d $HOME/.mybashrc/.git ]; then
|
||||
git -C $HOME/.mybashrc pull -q
|
||||
if [ -d "$HOME/.mybashrc/.git" ]; then
|
||||
git -C "$HOME/.mybashrc" pull -q
|
||||
$HOME/.mybashrc/setup.sh > /dev/null 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
EE_MYSQL_OPTIMIZATION() {
|
||||
|
||||
if [ -f $HOME/.my.cnf ]; then
|
||||
if [ -f "$HOME/.my.cnf" ]; then
|
||||
/usr/bin/mysqlcheck -Aos --auto-repair
|
||||
elif [ -f /etc/psa/.psa.shadow ]; then
|
||||
MYSQL_PWD="$(cat /etc/psa/.psa.shadow)" /usr/bin/mysqlcheck -Aos -uadmin --auto-repair
|
||||
|
@ -53,7 +53,7 @@ LIST_BY_SIZE() {
|
|||
}
|
||||
|
||||
EE_DOCKER_SETUP() {
|
||||
if [ ! -d $HOME/.ee ]; then
|
||||
if [ ! -d "$HOME/.ee" ]; then
|
||||
mkdir $HOME/.ee
|
||||
fi
|
||||
curl -fsSL get.docker.com -o $HOME/.ee/get-docker.sh
|
||||
|
@ -90,8 +90,8 @@ ffmpeg_start_time() {
|
|||
echo "example : ffmpeg-cut-start 00:34:24.85 file.mp4 300"
|
||||
else
|
||||
|
||||
FFMPEG_ARGS="-ss "$2" -i "$1""
|
||||
if [ "$3" ]; then
|
||||
FFMPEG_ARGS="-ss \"$2\" -i \"$1\""
|
||||
if [ -n "$3" ]; then
|
||||
FFMPEG_ARGS="$FFMPEG_ARGS -time $3 -c copy -movflags +faststart ${1%.mp4}-output.mp4"
|
||||
else
|
||||
FFMPEG_ARGS="$FFMPEG_ARGS -c copy -movflags +faststart ${1%.mp4}-output.mp4"
|
||||
|
@ -275,11 +275,11 @@ _WP_PERMISSIONS() {
|
|||
}
|
||||
|
||||
_PERM_FILES() {
|
||||
find -type f -exec chmod "$1" {} \;
|
||||
find . -type f -exec chmod "$1" {} \;
|
||||
}
|
||||
|
||||
_PERM_FOLDER() {
|
||||
find -type d -exec chmod "$1" {} \;
|
||||
find . -type d -exec chmod "$1" {} \;
|
||||
}
|
||||
|
||||
_FIX_NETDATA() {
|
||||
|
|
Loading…
Reference in New Issue