- If invalid systemd units exists, move those in every profile.
Change-Id: Ie4bc762f0d6e57fba0af41240b876300f1d04b5a
# $1 : file path, $2 : file name
function move_systemd_unit
{
- profile_info=$(grep "TZ_BUILD_PROFILE" /etc/tizen-build.conf | awk -F '[=]' '{ print $2 }')
- if [ "$profile_info" == "mobile" ] || [ "$profile_info" == "wearable" ]
+ if [ ! -d $not_permitted_unit_path ]
then
- if [ ! -d $not_permitted_unit_path ]
- then
- mkdir $not_permitted_unit_path
- fi
- mv "$1" "$not_permitted_unit_path$2"
+ mkdir $not_permitted_unit_path
fi
+ mv "$1" "$not_permitted_unit_path$2"
}