Green’s Dictionary of Slang

shag adj.1

[? SE shag, a rascal, a rogue]

1. [mid-19C] criminal, corrupt.

2. [1930s–50s] (US prison) worthless.