OSDN Git Service
(root)
/
alterlinux
/
dmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff14f06
)
[fix] : Fixed SC2059
author
hayao
<hayao@fascode.net>
Sat, 13 Feb 2021 07:09:16 +0000
(16:09 +0900)
committer
hayao
<hayao@fascode.net>
Sat, 13 Feb 2021 07:09:16 +0000
(16:09 +0900)
dmc
patch
|
blob
|
history
diff --git
a/dmc
b/dmc
index
6cae27b
..
26a1f36
100755
(executable)
--- a/
dmc
+++ b/
dmc
@@
-88,7
+88,7
@@
check_root(){
check_int(){
set +e
#if (( "$(expr "${1}" + 1 >/dev/null 2>&1; printf "${?}")" < 2 )); then
- if printf "${1}" | grep -E "^[0-9]+$" 1>/dev/null 2>&1; then
+ if printf "
%s" "
${1}" | grep -E "^[0-9]+$" 1>/dev/null 2>&1; then
set -e
return 0
else