bit of cleanup of linux remnants and libreoffice-bin from packages instead of mas
This commit is contained in:
@@ -113,20 +113,11 @@ confirm_details
|
||||
replace_tokens() {
|
||||
local file="$1"
|
||||
if [[ $(basename $1) != "apply" ]]; then
|
||||
if [[ "$OS" == "Darwin" ]]; then
|
||||
# macOS
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%USER%/$USERNAME/g" "$file"
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
|
||||
LC_ALL=C LANG=C sed -i '' -e "s/%NAME%/$GIT_NAME/g" "$file"
|
||||
else
|
||||
# Linux or other
|
||||
sed -i -e "s/%USER%/$USERNAME/g" "$file"
|
||||
sed -i -e "s/%EMAIL%/$GIT_EMAIL/g" "$file"
|
||||
sed -i -e "s/%NAME%/$GIT_NAME/g" "$file"
|
||||
sed -i -e "s/%INTERFACE%/$PRIMARY_IFACE/g" "$file"
|
||||
sed -i -e "s/%DISK%/$BOOT_DISK/g" "$file"
|
||||
sed -i -e "s/%HOST%/$HOST_NAME/g" "$file"
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user