New generic install method
This commit is contained in:
15
installJRMC
15
installJRMC
@@ -870,22 +870,15 @@ installMCGENERIC() {
|
|||||||
tar xvf "control.tar.xz" &>/dev/null
|
tar xvf "control.tar.xz" &>/dev/null
|
||||||
echo "You must install the following dependencies manually:"
|
echo "You must install the following dependencies manually:"
|
||||||
grep -i "Depends:" control
|
grep -i "Depends:" control
|
||||||
raw_files=("$(tar xvf data.tar.xz)")
|
readarray -t raw_files < <(tar xvf data.tar.xz)
|
||||||
# List of files to install
|
|
||||||
#raw_files=("$(find etc/ usr/ -mindepth 1 -type f)")
|
|
||||||
debug "raw_files=(${raw_files[*]})"
|
|
||||||
# Output to log file
|
# Output to log file
|
||||||
echo "${raw_files[@]/^.\//\/}" >> "$SCRIPTDIR/.uninstall"
|
echo "${raw_files[@]/#./}" >> "$SCRIPTDIR/.uninstall"
|
||||||
# for f in "${raw_files[@]}"; do
|
|
||||||
# echo "/${f"
|
|
||||||
# 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" "${f/#./}"
|
||||||
done
|
done
|
||||||
popd &>/dev/null || return
|
popd &>/dev/null || return
|
||||||
debug || execute rm -rf "$extract_dir"
|
execute rm -rf "$extract_dir"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user