OSDN Git Service

[update] : Remove useless functions
authorhayao <shun819.mail@gmail.com>
Sat, 3 Oct 2020 15:08:00 +0000 (00:08 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 3 Oct 2020 15:08:00 +0000 (00:08 +0900)
allarch.sh
build.sh

index 04e7950..17c9e46 100755 (executable)
@@ -258,11 +258,6 @@ load_config() {
     done
 }
 
-# 作業ディレクトリを削除
-remove_work() {
-    remove "${work_dir}"
-}
-
 # Display channel list
 show_channel_list() {
     if [[ "${nochkver}" = true ]]; then
@@ -1460,6 +1455,6 @@ if [[ "${tarball}" = true ]]; then
     done
 fi
 [[ "${noiso}" = false ]] && run_once make_iso
-[[ "${cleaning}" = true ]] && remove_work
+[[ "${cleaning}" = true ]] && remove "${work_dir}"
 
 exit 0
index 0338569..91cb1db 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -248,11 +248,6 @@ load_config() {
     done
 }
 
-# 作業ディレクトリを削除
-remove_work() {
-    remove "${work_dir}"
-}
-
 # Display channel list
 show_channel_list() {
     if [[ "${nochkver}" = true ]]; then
@@ -1517,6 +1512,6 @@ run_once make_efiboot
 [[ "${tarball}" = true ]] && run_once make_tarball
 
 [[ "${noiso}" = false ]] && run_once make_iso
-[[ "${cleaning}" = true ]] && remove_work
+[[ "${cleaning}" = true ]] && remove "${work_dir}"
 
 exit 0