We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48761d commit e9b3d59Copy full SHA for e9b3d59
channels/releng/airootfs.any/root/customize_airootfs.sh
@@ -55,20 +55,11 @@ kernel_filename="${kernel_config_line[1]}"
55
kernel_mkinitcpio_profile="${kernel_config_line[2]}"
56
57
58
-# Delete file only if file exists
59
-# remove <file1> <file2> ...
60
-function remove () {
61
- local _list
+# Show message when file is removed
+# remove <file> <file> ...
+remove() {
62
local _file
63
- _list=($(echo "$@"))
64
- for _file in "${_list[@]}"; do
65
- if [[ -f ${_file} ]]; then
66
- rm -f "${_file}"
67
- elif [[ -d ${_file} ]]; then
68
- rm -rf "${_file}"
69
- fi
70
- echo "${_file} was deleted."
71
- done
+ for _file in "${@}"; do echo "Removing ${_file}"; rm -rf "${_file}"; done
72
}
73
74
0 commit comments