New generic install method
This commit is contained in:
11
installJRMC
11
installJRMC
@@ -875,16 +875,17 @@ installMCGENERIC() {
|
|||||||
#raw_files=("$(find etc/ usr/ -mindepth 1 -type f)")
|
#raw_files=("$(find etc/ usr/ -mindepth 1 -type f)")
|
||||||
debug "raw_files=(${raw_files[*]})"
|
debug "raw_files=(${raw_files[*]})"
|
||||||
# Output to log file
|
# Output to log file
|
||||||
for f in "${raw_files[@]}"; do
|
echo "${raw_files[@]/^.\//\/}" >> "$SCRIPTDIR/.uninstall"
|
||||||
echo "/$f"
|
# for f in "${raw_files[@]}"; do
|
||||||
echo "/$f" >> "$SCRIPTDIR/.uninstall"
|
# echo "/${f"
|
||||||
done
|
# echo "/$f" >> "$SCRIPTDIR/.uninstall"
|
||||||
|
# done
|
||||||
# Manually install files
|
# Manually install files
|
||||||
for f in "${raw_files[@]}"; do
|
for f in "${raw_files[@]}"; do
|
||||||
execute sudo cp -a "$f" "/"
|
execute sudo cp -a "$f" "/"
|
||||||
done
|
done
|
||||||
popd &>/dev/null || return
|
popd &>/dev/null || return
|
||||||
execute rm -rf "$extract_dir"
|
debug || execute rm -rf "$extract_dir"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user