aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2015-04-03 17:45:19 +0800
committerTing-Wei Lan <lantw44@gmail.com>2015-04-03 17:45:19 +0800
commit2e86586ca8e60bee9b03135020b118ba5598813b (patch)
treec50202bd756a5a10777c90575506e57d04c6a9ab /bash_include
parent8de4332f3744a977d80f92e4f973dff1f0d2bdef (diff)
downloadconfigfile-2e86586ca8e60bee9b03135020b118ba5598813b.tar
configfile-2e86586ca8e60bee9b03135020b118ba5598813b.tar.gz
configfile-2e86586ca8e60bee9b03135020b118ba5598813b.tar.bz2
configfile-2e86586ca8e60bee9b03135020b118ba5598813b.tar.lz
configfile-2e86586ca8e60bee9b03135020b118ba5598813b.tar.xz
configfile-2e86586ca8e60bee9b03135020b118ba5598813b.tar.zst
configfile-2e86586ca8e60bee9b03135020b118ba5598813b.zip
bash_include: function 的 { 放到下ㄧ行
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include25
1 files changed, 16 insertions, 9 deletions
diff --git a/bash_include b/bash_include
index f4ea822..fc4c528 100644
--- a/bash_include
+++ b/bash_include
@@ -998,14 +998,16 @@ function trash_du ()
# Group: Windows Executable Helpers ##########################################
-function windows_exe_get_deps () {
+function windows_exe_get_deps ()
+{
: ${OBJDUMP:="objdump"}
LANG=C LC_ALL=C LANGUAGE= ${OBJDUMP} -p "$1" | \
safe_grep 'DLL Name' | \
sed 's|[ ]*DLL Name: \(.*\)$|\1|'
}
-function windows_dll_is_builtin () {
+function windows_dll_is_builtin ()
+{
local builtin_dlls=(
advapi32.dll
comctl32.dll
@@ -1046,7 +1048,8 @@ function windows_dll_is_builtin () {
return 1
}
-function windows_exe_find_dlls () {
+function windows_exe_find_dlls ()
+{
local thisfile="$1"
local verbose="$2"
local level="$3"
@@ -1089,7 +1092,8 @@ function windows_exe_find_dlls () {
done
}
-function windows_exe_copy () {
+function windows_exe_copy ()
+{
local dry_run="false"
local verbose="false"
@@ -1241,8 +1245,8 @@ function fbterm_chewing ()
fbterm -s "$font_size" "$@" -- uim-fep -u chewing
fi
}
-
-function gen_ms_inet_shortcut () {
+function gen_ms_inet_shortcut ()
+{
[ "$#" != "2" ] && {
echo "Usage: $FUNCNAME filename url"
} && return 1
@@ -1463,7 +1467,8 @@ function get_memory_info ()
# Tools: Packages ############################################################
-function rpmdu () {
+function rpmdu ()
+{
local div_base=1
local div_name="KB"
local total=0
@@ -1515,7 +1520,8 @@ function rpmdu () {
done
}
-function rpmsize () {
+function rpmsize ()
+{
local div_base=1
local div_name="Bytes"
local total=0
@@ -1562,7 +1568,8 @@ function rpmsize () {
done
}
-function freebsd_ports_should_rebuild () {
+function freebsd_ports_should_rebuild ()
+{
if [ -f "/var/db/pkg/local.sqlite" ]; then
WITH_PKGNG="true"
pkg_which_cmd="pkg which -q"