diff options
| author | OpportunityLiu <[email protected]> | 2019-06-06 13:14:41 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-06-06 14:37:23 +0800 |
| commit | 0a0c2d0cea84f08c6b5ceddb0e89f4f59004f1f5 (patch) | |
| tree | c49d6835ded4e5284ad9844c82c167e71a130206 | |
| parent | f243d16eddf71ad45d3b0c662408517d081edd7d (diff) | |
fix
| -rw-r--r-- | xmake/actions/update/main.lua | 2 | ||||
| -rw-r--r-- | xmake/scripts/update-script.sh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 701c56b5c..1b25bd6bc 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -76,7 +76,7 @@ function _sudo_v(program, params) if sudo.has() then -- confirm to install? - local confirm = utils.confirm({default = true, description = "try continue to run `%s` with administrator permission again"}) + local confirm = utils.confirm({ default = true, description = format("try continue to run `%s` with administrator permission again", command) }) if confirm then sudo.vrunv(program, params) return true diff --git a/xmake/scripts/update-script.sh b/xmake/scripts/update-script.sh index 9e79ec71a..4d7d9f25e 100644 --- a/xmake/scripts/update-script.sh +++ b/xmake/scripts/update-script.sh @@ -1,5 +1,5 @@ cd "$1" -rm actions core includes languages modules platforms plugins repository rules scripts templates themes -rf -cp "$2" "$1/.." -rf
\ No newline at end of file +rm -rf actions core includes languages modules platforms plugins repository rules scripts templates themes +cp -rf "$2" "$1/.."
\ No newline at end of file |
