Housing (Scotland) Act 1987

4—A tenancy shall not be a secure tenancy if the house is occupied by the tenant while works are being carried out on the house which he normally occupies as his home, and if he is entitled to return there after the works are completed—

(a)by agreement; or

(b)by virtue of an order of the sheriff under section 48(5).